In Image
's asdoc, we can see :
Flex also includes the BitmapImage class. This class is used for embedding images into skins and FXG components
but we can also use Image
in skins and use @Embed
with Image
...
Therefore, where and when should I use Image
or BitmapImage
please ?
Image
is a skinnable class that wrapsBitmapImage
. As such BitmapImage is more lightweight, but Image has more features. So the question when to use which boils down to this:if the features of BitmapImage suffice, use that; otherwise use Image. Especially in mobile environments try to favor the use of BitmapImage.
Now what features does Image add exactly?