Inheritance Item object > BitmapItem object
Flash MX 2004.
A BitmapItem object refers to a bitmap in the library of a document. The BitmapItem object is a subclass of the Item object (see Item object).
In addition to the Item object properties, the BitmapItem object has following properties:
| Property | Description |
|---|---|
| bitmapItem.allowSmoothing | A Boolean value that specifies whether to allow smoothing of a bitmap. |
| bitmapItem.compressionType | A string that determines the type of image compression applied to the bitmap. |
| bitmapItem.fileLastModifiedDate | The number of seconds that have elapsed between January 1, 1970 and the modification date of the original file. |
| bitmapItem.hasValidAlphaLayer | A Boolean value indicating whether the bitmap has an alpha channel. |
| bitmapItem.hPixels | Specifies the width of the bitmap, in pixels. |
| bitmapItem.lastModifiedDate | The modification date of the bitmap item in the Library. |
| bitmapItem.originalCompressionType | Specifies whether the item was imported as an jpeg file. |
| bitmapItem.sourceFileExists | Specifies whether the file that was imported to the Library still exists in the location from where it was imported. |
| bitmapItem.sourceFileIsCurrent | Specifies whether the file modification date of the Library item is the same as the modification date on disk of the file that was imported. |
| bitmapItem.sourceFilePath | The path and name of the file that was imported into the Library. |
| bitmapItem.useDeblocking | Specifies whether deblocking is enabled. |
| bitmapItem.useImportedJPEGQuality | A Boolean value that specifies whether to use the default imported JPEG quality. |
| bitmapItem.vPixels | Specifies the height of the bitmap, in pixels. |
In addition to the Item object properties, the BitmapItem object has following methods:
| Method | Description |
|---|---|
| bitmapItem.exportToFile() | Exports the specified item to a PNG or JPG file. |