If I load a bitmap using a loader in Flex, I can use the loaderInfo.bytesTotal to get the size, total bytes used, of a bitmap.
If I create a bitmap in run time, how can I find out the size, the total bytes used, by that bitmap.
Please advice. Thanks
That might do the trick.
I think a better solution than the one above would be:
This is because using the getPixels() method creates an additional ByteArray, so it's both slow and uses extra memory.