Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
spark.utils 

BitmapUtil  - AS3 Flex

Paquetespark.utils
Clasepublic class BitmapUtil
HerenciaBitmapUtil Inheritance Object

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

This class provides bitmap-related utility functions



Propiedades públicas
 PropiedadDefinido por
 Inheritedconstructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada.
Object
Métodos públicos
 MétodoDefinido por
  
getSnapshot(target:IUIComponent, visibleBounds:Rectangle = null, propagateColorTransform:Boolean = false):BitmapData
[estática] Creates a BitmapData representation of the target object.
BitmapUtil
  
getSnapshotWithPadding(target:IUIComponent, padding:int = 4, propagateColorTransform:Boolean = false, bounds:Rectangle = null):BitmapData
[estática] Creates a BitmapData representation of the target object.
BitmapUtil
 Inherited
Indica si un objeto tiene definida una propiedad especificada.
Object
 Inherited
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro.
Object
 Inherited
Indica si existe la propiedad especificada y si es enumerable.
Object
 Inherited
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle.
Object
 Inherited
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional.
Object
 Inherited
Devuelve la representación de cadena del objeto especificado.
Object
 Inherited
Devuelve el valor simple del objeto especificado.
Object
Información sobre métodos

getSnapshot

()método
public static function getSnapshot(target:IUIComponent, visibleBounds:Rectangle = null, propagateColorTransform:Boolean = false):BitmapData

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Creates a BitmapData representation of the target object.

Parámetros

target:IUIComponent — The object to capture in the resulting BitmapData
 
visibleBounds:Rectangle (default = null) — If non-null, this Rectangle will be populated with the visible bounds of the object, relative to the object itself.
 
propagateColorTransform:Boolean (default = false) — If true, the target's color transform will be applied to the bitmap capture operation.

Valor devuelto
BitmapData — A BitmapData object containing the image.

Emite
SecurityError — The target object and all of its child objects do not come from the same domain as the caller, or are not in a content that is accessible to the caller by having called the Security.allowDomain() method.

getSnapshotWithPadding

()método 
public static function getSnapshotWithPadding(target:IUIComponent, padding:int = 4, propagateColorTransform:Boolean = false, bounds:Rectangle = null):BitmapData

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 4
Versiones de motor de ejecución: Flash Player 10, AIR 1.5

Creates a BitmapData representation of the target object.

Parámetros

target:IUIComponent — The object to capture in the resulting BitmapData
 
padding:int (default = 4) — Padding, in pixels, around to target to be included in the bitmap.
 
propagateColorTransform:Boolean (default = false) — If true, the target's color transform will be applied to the bitmap capture operation.
 
bounds:Rectangle (default = null) — If non-null, this Rectangle will be populated with the visible bounds of the object, relative to the object itself.

Valor devuelto
BitmapData — A BitmapData object containing the image.

Emite
SecurityError — The target object and all of its child objects do not come from the same domain as the caller, or are not in a content that is accessible to the caller by having called the Security.allowDomain() method.




[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.