Hi there, i have been searching a lot and Im not able to guess how to do it. Can anybody tell me if there is a way to convert a bitmapdata in an image? Or to draw the pixels of a bitmapdata in an image??
Many thanks!
Hi there, i have been searching a lot and Im not able to guess how to do it. Can anybody tell me if there is a way to convert a bitmapdata in an image? Or to draw the pixels of a bitmapdata in an image??
Many thanks!
If you want access to the BitmapData
, you can get a reference to it with Image.source
.
var myImage:Image;
var myBitmapData:BitmapData = myImage.source;
This doesn’t work. Image does not have a property called “source”. See documentation here: http://useflashpunk.net/docs/net/flashpunk/graphics/Canvas.html
That’s the Canvas class, not the Image class. Image does have a source property, but it’s protected for some reason.