-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cloning ImageData #610
Comments
There is |
@LinusU I wanted to clone ImageData, and then perform some operations. Example: https://github.com/inssein/jsfx/blob/master/src/filter/unsharpMask.ts#L75 |
Shouldn't that code work as is right now? |
@LinusU works on the web, doesn't seem to properly clone in node-canvas. Also, shouldn't it be a CanvasPixelArray right now, before the PR is merged? |
Sorry, the issue was with something else. |
I can't figure out how to clone an ImageData object, short of retrieving it again from the context.
All the methods I know of require ImageData.data to be a Uint8ClampedArray with the setter exposed. Is there anything I can do right now, short of waiting for #604 to be merged?
The text was updated successfully, but these errors were encountered: