Packagefrocessing.bmp
Classpublic class FImage
InheritanceFImage Inheritance FBitmapData Inheritance Object
Subclasses FImageLoader

FImage



Public Properties
 PropertyDefined By
 InheritedbitmapData : BitmapData
[read-only]
FBitmapData
 Inheritedheight : int
[read-only]
FBitmapData
 Inheritedrect : Rectangle
[read-only]
FBitmapData
 Inheritedtransparent : Boolean
[read-only]
FBitmapData
 Inheritedwidth : int
[read-only]
FBitmapData
Public Methods
 MethodDefined By
  
FImage(bitmapData:BitmapData)
FImage
  
alpha(value:Number):void
alpha bitmapData.
FImage
 Inherited
dispose():void
FBitmapData
 Inherited
draw(source:IBitmapDrawable, matrix:Matrix = null, colorTransform:ColorTransform = null, blendMode:String = null, clipRect:Rectangle = null, smoothing:Boolean = false):void
FBitmapData
 Inherited
drawPixel32(x:int, y:int, color:uint):void
FBitmapData
 Inherited
fillRect(rect:Rectangle, color:uint):void
FBitmapData
  
getColor(x:Number, y:Number, normal:Boolean = true, alpha:Boolean = false, wrap:Boolean = false):uint
get pixel color
FImage
 Inherited
getPixel(x:int, y:int):uint
FBitmapData
 Inherited
getPixel32(x:int, y:int):uint
FBitmapData
 Inherited
lock():void
FBitmapData
  
mask(src:IBitmapDrawable, channel:uint = 8, alphaBlend:Boolean = true):void
mask bitmapData.
FImage
 Inherited
setPixel(x:int, y:int, color:uint):void
FBitmapData
 Inherited
setPixel32(x:int, y:int, color:uint):void
FBitmapData
  
setSize(width:int, height:int, align:String = null, scaleMode:String = null, transparent:Boolean = true, bgcolor:uint = 0, smooth:Boolean = true):void
re size bitmapdata.
FImage
  
slice(left:Number, top:Number, width:Number, height:Number):BitmapData
slice bitmapData by rectangle.
FImage
  
split(split_x_num:uint = 1, split_y_num:uint = 1):Array
split bitmapData by grid.
FImage
  
toImage(dobj:DisplayObject, width:int = 0, height:int = 0, align:String = null, scaleMode:String = null, transparent:Boolean = true, bgcolor:uint = 0xff000000):BitmapData
[static] DisplayObject を BitmapDataに変換します.
FImage
 Inherited
unlock(changeRect:Rectangle = null):void
FBitmapData
  
valueOf():BitmapData
FImage
Constructor Detail
FImage()Constructor
public function FImage(bitmapData:BitmapData)

Parameters
bitmapData:BitmapData
Method Detail
alpha()method
public function alpha(value:Number):void

alpha bitmapData.

Parameters

value:Number — alpha value

getColor()method 
public function getColor(x:Number, y:Number, normal:Boolean = true, alpha:Boolean = false, wrap:Boolean = false):uint

get pixel color

Parameters

x:Number — x value, if( normal ) value [0.0 to 1.0]
 
y:Number — y value, if( normal ) value [0.0 to 1.0]
 
normal:Boolean (default = true) — specify a value normalized.
 
alpha:Boolean (default = false) — get 32bit color
 
wrap:Boolean (default = false)

Returns
uint
mask()method 
public function mask(src:IBitmapDrawable, channel:uint = 8, alphaBlend:Boolean = true):void

mask bitmapData.

Parameters

src:IBitmapDrawable — IBitmapDrawable( DisplayObject or BitmapData ).
 
channel:uint (default = 8) — src channel for alpha channel.
 
alphaBlend:Boolean (default = true) — blends alpha channel and mask channel.

setSize()method 
public function setSize(width:int, height:int, align:String = null, scaleMode:String = null, transparent:Boolean = true, bgcolor:uint = 0, smooth:Boolean = true):void

re size bitmapdata.

Parameters

width:int
 
height:int
 
align:String (default = null)
 
scaleMode:String (default = null)
 
transparent:Boolean (default = true)
 
bgcolor:uint (default = 0)
 
smooth:Boolean (default = true)

See also

slice()method 
public function slice(left:Number, top:Number, width:Number, height:Number):BitmapData

slice bitmapData by rectangle.

Parameters

left:Number
 
top:Number
 
width:Number
 
height:Number

Returns
BitmapData
split()method 
public function split(split_x_num:uint = 1, split_y_num:uint = 1):Array

split bitmapData by grid.

Parameters

split_x_num:uint (default = 1)
 
split_y_num:uint (default = 1)

Returns
Array — BitmapData[]
toImage()method 
public static function toImage(dobj:DisplayObject, width:int = 0, height:int = 0, align:String = null, scaleMode:String = null, transparent:Boolean = true, bgcolor:uint = 0xff000000):BitmapData

DisplayObject を BitmapDataに変換します.

Parameters

dobj:DisplayObject — DisplayObject
 
width:int (default = 0) — BitmapData width( 0 to dobj.width )
 
height:int (default = 0) — BitmapData height( 0 to dobj.height )
 
align:String (default = null) — draw align. default center.
 
scaleMode:String (default = null) — draw scaleMode. default noScale.
 
transparent:Boolean (default = true) — BitmapData transparent.
 
bgcolor:uint (default = 0xff000000) — BitmapData bg color.

Returns
BitmapData

See also

valueOf()method 
public function valueOf():BitmapData

Returns
BitmapData