Drawing Canvas APIs
Addon SDK v1 retirement
The built-in Drawing canvas plugin exposes the following APIs.
Drawing canvas instance APIs
- async GetImagePixelData()
- Takes a snapshot of the drawing canvas pixel state on the GPU, and reads it back to the CPU asynchronously. Resolves with an ImageData representing the pixel data. Note this uses unpremultiplied alpha, whereas the surface on the GPU is premultiplied, so technically this is lossy.
Addon SDK Manual
Construct.net
2019-08-22
2024-05-20
You are here:
Search this manual:
This manual entry was last updated on 20 May, 2024 at 15:10