You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems only 8 bit buffers are supported. But, 16 bit needs unsigned ints or similar, if the 16 bit is already available to the user, who doesn't want to downsample it to 8bit.
The text was updated successfully, but these errors were encountered:
16-bit color is indeed available, for RGB, RGBA, greyscale and greyscale+alpha. It stores them in an 8-bit unsigned chars buffer, but using 2 unsigned chars per pixel
For example if you have 16-bit RGB, it will use 6 bytes per pixel.
The values are in big endian order, just like they are inside the PNG file format
Please check out the code snippet in the comment in #74 to see a working example (greyscale in that case)
Please feel free to reopen this bug if you have any further questions about this :)
It seems only 8 bit buffers are supported. But, 16 bit needs unsigned ints or similar, if the 16 bit is already available to the user, who doesn't want to downsample it to 8bit.
The text was updated successfully, but these errors were encountered: