套件 | spark.utils |
類別 | public class BitmapUtil |
繼承 | BitmapUtil Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
公用方法
方法 | 定義自 | ||
---|---|---|---|
getSnapshot(target:IUIComponent, visibleBounds:Rectangle = null, propagateColorTransform:Boolean = false):BitmapData [靜態]
Creates a BitmapData representation of the target object. | BitmapUtil | ||
getSnapshotWithPadding(target:IUIComponent, padding:int = 4, propagateColorTransform:Boolean = false, bounds:Rectangle = null):BitmapData [靜態]
Creates a BitmapData representation of the target object. | BitmapUtil | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
方法詳細資訊
getSnapshot | () | 方法 |
public static function getSnapshot(target:IUIComponent, visibleBounds:Rectangle = null, propagateColorTransform:Boolean = false):BitmapData
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Creates a BitmapData representation of the target object.
參數
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.
|
擲回值
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 | () | 方法 |
public static function getSnapshotWithPadding(target:IUIComponent, padding:int = 4, propagateColorTransform:Boolean = false, bounds:Rectangle = null):BitmapData
語言版本: | ActionScript 3.0 |
產品版本: | Flex 4 |
執行階段版本: | Flash Player 10, AIR 1.5 |
Creates a BitmapData representation of the target object.
參數
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.
|
擲回值
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, 03:47 PM Z