Package | frocessing.bmp |
Class | public class FImage |
Inheritance | FImage FBitmapData Object |
Subclasses | FImageLoader |
Method | Defined By | ||
---|---|---|---|
FImage(bitmapData:BitmapData) | FImage | ||
alpha(value:Number):void
alpha bitmapData. | FImage | ||
dispose():void | FBitmapData | ||
draw(source:IBitmapDrawable, matrix:Matrix = null, colorTransform:ColorTransform = null, blendMode:String = null, clipRect:Rectangle = null, smoothing:Boolean = false):void | FBitmapData | ||
drawPixel32(x:int, y:int, color:uint):void | FBitmapData | ||
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 | ||
getPixel(x:int, y:int):uint | FBitmapData | ||
getPixel32(x:int, y:int):uint | FBitmapData | ||
lock():void | FBitmapData | ||
mask(src:IBitmapDrawable, channel:uint = 8, alphaBlend:Boolean = true):void
mask bitmapData. | FImage | ||
setPixel(x:int, y:int, color:uint):void | FBitmapData | ||
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 | ||
unlock(changeRect:Rectangle = null):void | FBitmapData | ||
valueOf():BitmapData | FImage |
FImage | () | Constructor |
public function FImage(bitmapData:BitmapData)
Parameters
bitmapData:BitmapData |
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 )
|
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 |
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 )
|
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.
|
BitmapData |
See also
valueOf | () | method |
public function valueOf():BitmapData
ReturnsBitmapData |