-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Create and draw image with raw ARGB32 data #1052
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
Comments
Does (I could see adding support for ARGB32 since https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData |
Oh, wow - hadn't found this when I was searching. Thanks a lot @zbjornson! The byte-swapping is fine as it's still better than encoding/decoding PNG. Going to close this issue now - thanks! |
Hello, I have a small follow-up question - what is the difference between the custom EDIT: Found my answer here: #306 (comment) |
Feature
I want to render image on the canvas from raw RGBA32 data - the same format data that is the output from canvas.toBuffer('raw'). Please guide me on how to expose the relevant variable.
The final else condition here: src/Image.cc#L256-L28 needs to be to set the raw buffer as is - that should enable this usecase.
Please help - thanks.
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: