Adobe Extending Flash Professional CS5 Manual de usuario Pagina 58

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 57
36
EXTENDING FLASH PROFESSIONAL
BitmapItem object
Last updated 5/2/2011
bitmapItem.allowSmoothing
Availability
Flash MX 2004.
Usage
bitmapItem.allowSmoothing
Description
Property; a Boolean value that specifies whether to allow smoothing of a bitmap (true) or not (false).
Example
The following code sets the allowSmoothing property of the first item in the library of the current document to true:
fl.getDocumentDOM().library.items[0].allowSmoothing = true;
alert(fl.getDocumentDOM().library.items[0].allowSmoothing);
bitmapItem.compressionType
Availability
Flash MX 2004.
Usage
bitmapItem.compressionType
Description
Property; a string that determines the type of image compression applied to the bitmap. Acceptable values are "photo"
or
"lossless". If the value of bitmapItem.useImportedJPEGQuality is false, "photo" corresponds to JPEG with
a quality from 0 to 100; if
bitmapItem.useImportedJPEGQuality is true, "photo" corresponds to JPEG using the
default document quality value. The value
"lossless" corresponds to GIF or PNG format (see
bitmapItem.useImportedJPEGQuality).
Example
The following code sets the compressionType property of the first item in the library of the current document to
"photo":
fl.getDocumentDOM().library.items[0].compressionType = "photo";
alert(fl.getDocumentDOM().library.items[0].compressionType);
bitmapItem.exportToFile()
Availability
Flash CS4 Professional.
Usage
bitmapItem.exportToFile(fileURI)
Vista de pagina 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 564 565

Comentarios a estos manuales

Sin comentarios