| Property | Defined By | ||
|---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
| contentType : String
The content type for the image encoding format that was used to
capture this snapshot.
| ImageSnapshot | ||
| data : ByteArray
The encoded data representing the image snapshot.
| ImageSnapshot | ||
| DEFAULT_ENCODER : Class
[static]
The default mx.graphics.codec.IImageEncoder implementation
used to capture images.
| ImageSnapshot | ||
| height : int
The image height in pixels.
| ImageSnapshot | ||
| MAX_BITMAP_DIMENSION : int = 2880 [static]
| ImageSnapshot | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
| width : int
The image width in pixels.
| ImageSnapshot | ||
| Method | Defined By | ||
|---|---|---|---|
|
Constructor.
| ImageSnapshot | ||
|
captureBitmapData(source:*, matrix:Matrix = null, colorTransform:ColorTransform = null, blendMode:String = null, clipRect:Rectangle = null, smoothing:Boolean = false):BitmapData
[static]
A utility method to grab a raw snapshot of a UI component as BitmapData.
| ImageSnapshot | ||
|
captureImage(source:*, dpi:Number = 0, encoder:IImageEncoder = null, scaleLimited:Boolean = true):ImageSnapshot
[static]
A utility method to grab a snapshot of a component, scaled to a specific
resolution (in dpi) and encoded into a specific image format.
| ImageSnapshot | ||
|
[static]
A utility method to convert an ImageSnapshot into a Base-64 encoded
String for transmission in text based serialization formats such as XML.
| ImageSnapshot | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| contentType | property |
contentType:String [read-write] The content type for the image encoding format that was used to capture this snapshot.
public function get contentType():String
public function set contentType(value:String):void
| data | property |
data:ByteArray [read-write] The encoded data representing the image snapshot.
public function get data():ByteArray
public function set data(value:ByteArray):void
| DEFAULT_ENCODER | property |
public static var DEFAULT_ENCODER:Class
The default mx.graphics.codec.IImageEncoder implementation
used to capture images. The default encoder uses the PNG format.
| height | property |
height:int [read-write] The image height in pixels.
public function get height():int
public function set height(value:int):void
| MAX_BITMAP_DIMENSION | property |
public static var MAX_BITMAP_DIMENSION:int = 2880
| width | property |
width:int [read-write] The image width in pixels.
public function get width():int
public function set width(value:int):void
| ImageSnapshot | () | Constructor |
public function ImageSnapshot(width:int = 0, height:int = 0, data:ByteArray = null, contentType:String = null)
Constructor.
Parameterswidth:int (default = 0) |
|
height:int (default = 0) |
|
data:ByteArray (default = null) |
|
contentType:String (default = null) |
| captureBitmapData | () | method |
public static function captureBitmapData(source:*, matrix:Matrix = null, colorTransform:ColorTransform = null, blendMode:String = null, clipRect:Rectangle = null, smoothing:Boolean = false):BitmapData
A utility method to grab a raw snapshot of a UI component as BitmapData.
Parameters
source:* — A UI component that implements flash.display.IBitmapDrawable
|
|
matrix:Matrix (default = null) — A Matrix object used to scale, rotate, or translate the
coordinates of the captured bitmap. If you do not want to apply a matrix
transformation to the image, set this parameter to an identity matrix,
created with the default new Matrix() constructor, or pass a null value.
|
|
colorTransform:ColorTransform (default = null) |
|
blendMode:String (default = null) |
|
clipRect:Rectangle (default = null) |
|
smoothing:Boolean (default = false) |
BitmapData — BitmapData representing the captured snapshot.
|
| captureImage | () | method |
public static function captureImage(source:*, dpi:Number = 0, encoder:IImageEncoder = null, scaleLimited:Boolean = true):ImageSnapshot
A utility method to grab a snapshot of a component, scaled to a specific resolution (in dpi) and encoded into a specific image format.
Parameters
source:* — A UI component that implements flash.display.IBitmapDrawable
|
|
dpi:Number (default = 0) — The resolution in dots per inch. If a resolution is not
provided the current on-screen resolution is used by default.
|
|
encoder:IImageEncoder (default = null) — The image format used to encode the raw bitmap. If
an encoder is not provided, a default PNGEncoder is used.
|
|
scaleLimited:Boolean (default = true) — The maximum width or height of a bitmap in Flash is
2880 pixels - if scaleLimited is set to true the resolution will be
reduced proportionately to fit within 2880 pixels, otherwise, if
scaleLimited is false, smaller snapshot windows will be taken and
stitched together to capture a larger image. The default is true.
|
ImageSnapshot — An ImageSnapshot holding an encoded captured snapshot and
associated image metadata.
|
| encodeImageAsBase64 | () | method |
public static function encodeImageAsBase64(snapshot:ImageSnapshot):String
A utility method to convert an ImageSnapshot into a Base-64 encoded String for transmission in text based serialization formats such as XML.
Parameters
snapshot:ImageSnapshot — An image captured as a mx.graphics.ImageSnapshot
|
String |
See also
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/mx/graphics/ImageSnapshot.html