-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Description
I though there were an issue created for this one, anyway it would be nice to be able to get a GraphicsContext to modify an Image. The tricky part here is to be able to undo all the modifications when the GraphicsContext is not used anymore.
Requested in the past and recently:
https://community.aseprite.org/t/how-to-draw-a-sprite-with-graphics-context/20572- https://community.aseprite.org/t/why-is-this-returning-a-nil/21525
The function wrap_docimage_in_sksurface() can be used for this purpose (not sure if this would work on all color modes).
EDIT: The crossed out link is about drawing in a GraphicsContext received in the onpaint event, so it is actually a different issue, also it is not actually an issue, since the user was trying to draw an sprite using GraphicsContext::drawImage, which receives an Image as a parameter, not an Sprite. Someone from the community gave the user a right answer, so there is no need to create an new github issue.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status