Skip to content

Latest commit

 

History

History
28 lines (15 loc) · 3.54 KB

File metadata and controls

28 lines (15 loc) · 3.54 KB

bitmapItem summary

Inheritance Item object > BitmapItem object

Availability

Flash MX 2004.

Description

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).

Property summary

In addition to the Item object properties, the BitmapItem object has following properties:

PropertyDescription
bitmapItem.allowSmoothingA Boolean value that specifies whether to allow smoothing of a bitmap.
bitmapItem.compressionTypeA string that determines the type of image compression applied to the bitmap.
bitmapItem.fileLastModifiedDateThe number of seconds that have elapsed between January 1, 1970 and the modification date of the original file.
bitmapItem.hasValidAlphaLayerA Boolean value indicating whether the bitmap has an alpha channel.
bitmapItem.hPixelsSpecifies the width of the bitmap, in pixels.
bitmapItem.lastModifiedDateThe modification date of the bitmap item in the Library.
bitmapItem.originalCompressionTypeSpecifies whether the item was imported as an jpeg file.
bitmapItem.sourceFileExistsSpecifies whether the file that was imported to the Library still exists in the location from where it was imported.
bitmapItem.sourceFileIsCurrentSpecifies 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.sourceFilePathThe path and name of the file that was imported into the Library.
bitmapItem.useDeblocking

Specifies whether deblocking is enabled.

bitmapItem.useImportedJPEGQualityA Boolean value that specifies whether to use the default imported JPEG quality.
bitmapItem.vPixelsSpecifies the height of the bitmap, in pixels.

Method summary

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.