-
Notifications
You must be signed in to change notification settings - Fork 3
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
Documentation issues : flags not that simple #60
Comments
What would have help you achieving this more readily? |
@HuskyNator perhaps there is a documentation issue we could fix? |
It'd be nice to be able to use loadFromMemory using a plain pixel array? |
Ah yes, Maybe a new call that do that internally would be cool, please suggest a name maybe? I'm thinking of |
Ah I see. I totally missed that comment! Totally my bad :) (EDIT: from p0nce: I'm sorry I accidentally replied in your comment!!!)
Now I see how
No because by creating from pixel data you cannot force some layout from load only (unlike, say, an image decoder could load a rgb8 image as rgba8 and save some time). But you can change type with: If your memory pixel already fulfilled some of the layout constraints, the constraints should be accepted without reallocating or cloning those pixels.
|
I'm trying to save an array of pixels but can't seem to do so.
I can't access the pixel data directly (mutate it), can't seem to load pixel data directly (eg using
loadFromMemory
.I tried using packed (gapless) data and
allPixelsAtOnce
on an initializedImage
, but it only seems readable.The text was updated successfully, but these errors were encountered: