| Package | sekati.display |
| Class | public class CoreBitmapData |
| Inheritance | CoreBitmapData flash.display.BitmapData |
CoreBitmapData provides a common interface for capturing,
scaling & cropping BitmapData from a DisplayObject.
| Method | Defined by | ||
|---|---|---|---|
|
CoreBitmapData(src:DisplayObject, x:int = 0, y:int = 0, width:Number, height:Number, scale:Number = 1, transparent:Boolean = false, fillColor:uint = 0x00FFFFFF)
CoreBitmapData Constructor
| CoreBitmapData | ||
|
addFilter(filter:BitmapFilter, cx:Number, cy:Number, width:Number, height:Number):void
Apply a
BitmapFilter to the BitmapData. | CoreBitmapData | ||
| Constant | Defined by | ||
|---|---|---|---|
| MAX_SIZE : int = 2880 [static]
Defines the (<= FP9) maximum dimension of a BitmapData object in the Flash Player.
| CoreBitmapData | ||
| CoreBitmapData | () | constructor |
public function CoreBitmapData(src:DisplayObject, x:int = 0, y:int = 0, width:Number, height:Number, scale:Number = 1, transparent:Boolean = false, fillColor:uint = 0x00FFFFFF)CoreBitmapData Constructor
Parameterssrc:DisplayObject — of the DisplayObject to capture.
|
|
x:int (default = 0) — optional crop start position.
|
|
y:int (default = 0) — optional crop start position.
|
|
width:Number — optional crop width.
|
|
height:Number — optional crop height.
|
|
scale:Number (default = 1) — optional scale (affects the actual end width & height).
|
|
transparent:Boolean (default = false) — Specifies whether the bitmap supports per-pixel transparency.
If true set the fillColor to 0x00000000 for a full transparent bitmap.
If false a minor improvement in rendering performance will result.
|
|
fillColor:uint (default = 0x00FFFFFF) — 32-bit ARGB value to fill the bitmap area with.
|
| addFilter | () | method |
public function addFilter(filter:BitmapFilter, cx:Number, cy:Number, width:Number, height:Number):void
Apply a BitmapFilter to the BitmapData.
filter:BitmapFilter |
|
cx:Number |
|
cy:Number |
|
width:Number |
|
height:Number |
See also
| MAX_SIZE | constant |
public static const MAX_SIZE:int = 2880Defines the (<= FP9) maximum dimension of a BitmapData object in the Flash Player.