Ok I have some trouble with BitmapData class…
I would like to create some BitmapData objects from ready images and do some manipulations on them, however, I have a problem creating instances of this class…
- Embedded approach -
So I got a image in the library and I have exported it for AS with class name SomeImage
then I try to create an instance of it
var si:BitmapData = new SomeImage();
Then I get - 1136: Incorrect number of arguments. Expected 2.
Now I understand that you have to pass size for this constructor to work, but that just does not make sense. What do I do if I want to use the ready bitmap data with its original size?
- External file approach -
Is there any way to load BitmapData from external file, without loading it to Loader object and picking it up from there?
Again it seems kind of the wrong way around…
BitmapData really looks great until you try to create one, as it seems…