Packagesekati.display
Classpublic class CoreBitmapData
InheritanceCoreBitmapData Inheritance flash.display.BitmapData

CoreBitmapData provides a common interface for capturing, scaling & cropping BitmapData from a DisplayObject.



Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined by
  MAX_SIZE : int = 2880
[static] Defines the (<= FP9) maximum dimension of a BitmapData object in the Flash Player.
CoreBitmapData
Constructor detail
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

Parameters
src: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.
Method detail
addFilter()method
public function addFilter(filter:BitmapFilter, cx:Number, cy:Number, width:Number, height:Number):void

Apply a BitmapFilter to the BitmapData.

Parameters
filter:BitmapFilter
 
cx:Number
 
cy:Number
 
width:Number
 
height:Number

See also

flash.filters.BitmapFilter
Constant detail
MAX_SIZEconstant
public static const MAX_SIZE:int = 2880

Defines the (<= FP9) maximum dimension of a BitmapData object in the Flash Player.