• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

The buffer value of png file loaded by LoadImageData is abnormal.

phj

New member
Joined
Feb 2, 2020
Messages
8
I spent the day on this issue.
The two files are similar and the first pixel is the same empty space.

tile.png-----
Local Imgbuffer:DataBuffer = LoadImageData("cerberus://data/tile.png", tileInfo)
Local RGB = Imgbuffer.PeekInt(0) & $ff ' check blue
RGB value is 255
but first pixel is blank.(a0,r0,g0,b0)

tile1.png------------
Local Imgbuffer:DataBuffer = LoadImageData("cerberus://data/tile1.png", tileInfo)
Local RGB = Imgbuffer.PeekInt(0) & $ff 'check blue
RGB value is 0 <-this value right.
first pixel is blank.(a0,r0,g0,b0)

what's wrong?

Do I have to add an option when saving in Photoshop?
 

Attachments

  • tile.png
    tile.png
    18 KB · Views: 129
  • tile1.png
    tile1.png
    19.3 KB · Views: 126
Sorry, I can't help you with this, but maybe someone else can.
But the possibility of someone at least testing it on his own system and giving you feedback is much higher, if you provide a working source code or even better a zip folder of an example project with this problem. It might also be of interest on what system you are and what target you are building for.
 
Sorry, I can't help you with this, but maybe someone else can.
But the possibility of someone at least testing it on his own system and giving you feedback is much higher, if you provide a working source code or even better a zip folder of an example project with this problem. It might also be of interest on what system you are and what target you are building for.

This is my mistake.
I wanted to find where the pixel is in the file.
I frivolously tried to find only blue values.
The value of the transparent pixel was (ARGB 0,255,255,255).
I thought of it as (ARGB 0,0,0,0).

thank reply Phil7!
 
Glad, you found it. So there are numerous variants of pixels, that all look the same. :p
 
Back
Top Bottom