Paket | spark.utils |
Klass | public class BitmapUtil |
Arv | BitmapUtil Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Publika egenskaper
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
getSnapshot(target:IUIComponent, visibleBounds:Rectangle = null, propagateColorTransform:Boolean = false):BitmapData [statisk]
Creates a BitmapData representation of the target object. | BitmapUtil | ||
getSnapshotWithPadding(target:IUIComponent, padding:int = 4, propagateColorTransform:Boolean = false, bounds:Rectangle = null):BitmapData [statisk]
Creates a BitmapData representation of the target object. | BitmapUtil | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
Metoddetaljer
getSnapshot | () | metod |
public static function getSnapshot(target:IUIComponent, visibleBounds:Rectangle = null, propagateColorTransform:Boolean = false):BitmapData
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Creates a BitmapData representation of the target object.
Parametrar
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.
|
BitmapData — A BitmapData object containing the image.
|
Utlöser
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 | () | metod |
public static function getSnapshotWithPadding(target:IUIComponent, padding:int = 4, propagateColorTransform:Boolean = false, bounds:Rectangle = null):BitmapData
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 4 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Creates a BitmapData representation of the target object.
Parametrar
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.
|
BitmapData — A BitmapData object containing the image.
|
Utlöser
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.
|
Tue Jun 12 2018, 01:40 PM Z