BitmapData
-- is actually what's being shown on the screen. The format is almost identical to BMP, but the order of bytes is reversed. Bitmap
is only a display container, serving to output image content to the screen and providing common DisplayObject APIs.
So, if you use BitmapData.dispose()
, you are actually freeing the memory occupied by image and obviously after that there is nothing to be shown by Bitmap
container.