Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[textures] ImageDraw() and ExportImage() (.png) does not support f32bit per channel image data #2222

Closed
3 tasks done
rmn20 opened this issue Dec 18, 2021 · 1 comment
Closed
3 tasks done
Labels
enhancement This is an improvement of some feature

Comments

@rmn20
Copy link
Contributor

rmn20 commented Dec 18, 2021

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of raylib

Issue description

I created PIXELFORMAT_UNCOMPRESSED_R32 format images, tried to combine them into one large image and export, but for some reason the image file was empty and rendering was broken. I replaced ImageDraw with memcpy and it helped fix the rendering with texture created from these images, but export was still broken.

Environment

Windows 8.1 64x
ATI Technologies Inc.
AMD Radeon HD 8330
GLSL 4.60

@raysan5
Copy link
Owner

raysan5 commented Dec 19, 2021

@rmn20 You are right, ImageDraw() does not support f32bit format images at this moment.

Afaik, PNG only supports up to 16bit per channel but stb_image_export only supports up to 8bit per channel image export.

raysan5 added a commit that referenced this issue Dec 19, 2021
Added a note for a future improvement
@raysan5 raysan5 changed the title [textures] ImageDraw and ExportImage (with .png) doesn't work with UNCOMPRESSED_R32 images [textures] ImageDraw() and ExportImage() (.png) does not support f32bit per channel image data Dec 19, 2021
@raysan5 raysan5 added the enhancement This is an improvement of some feature label Dec 24, 2021
@raysan5 raysan5 closed this as completed Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an improvement of some feature
Projects
None yet
Development

No branches or pull requests

2 participants