You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am experimenting with the Picture shape. An image is loaded into the Picture shape and displayed successfully after adding the shape to a layer.
I get at the ImageData of the picture, and change the color of some pixels by using APIs of ImageData (e.g. setRed, setGreen, ...).
After changing the imagedata of this picture shape, how do I refresh the picture so that it shows the effect of color changes at those pixels?? In other words, how to ask the picture to use the newly modified image data?? I must be missing something, as I could not find the APIs to do so.
The text was updated successfully, but these errors were encountered:
In addition to updating a picture after pixel editing, I also have a related use case that might call for new constructors for Picture.
At this time, all the constructors of Picture are based on a parameter requiring an external resource, say a URL or ImageResource. However, if a new bitmap/imagedata is created programmatically, can we turn that into a picture? Thank you.
It's not that hard to do, it's just messy when it comes to JSON serialization, and YOU wrote most go the tickets for JSON deserialization. Basically, if you construct a picture with ImageData, I need to force picture serialization to data URL's... something to think about.
I am experimenting with the Picture shape. An image is loaded into the Picture shape and displayed successfully after adding the shape to a layer.
I get at the ImageData of the picture, and change the color of some pixels by using APIs of ImageData (e.g. setRed, setGreen, ...).
After changing the imagedata of this picture shape, how do I refresh the picture so that it shows the effect of color changes at those pixels?? In other words, how to ask the picture to use the newly modified image data?? I must be missing something, as I could not find the APIs to do so.
The text was updated successfully, but these errors were encountered: