W3cubDocs

/Haxe Flash

BitmapData

package flash.display

implements IBitmapDrawable

Available on flash

Constructor

@:value({ fillColor : 0xFFFFFFFF, transparent : true }) new (width:Int, height:Int, transparent:Bool = true, fillColor:UInt = 0xFFFFFFFF)

Variables

read only height:Int

read only rect:Rectangle

read only transparent:Bool

read only width:Int

Methods

applyFilter (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, filter:BitmapFilter):Void

clone ():BitmapData

colorTransform (rect:Rectangle, colorTransform:ColorTransform):Void

compare (otherBitmapData:BitmapData):Object

copyChannel (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, sourceChannel:UInt, destChannel:UInt):Void

@:value({ mergeAlpha : false }) copyPixels (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, ?alphaBitmapData:BitmapData, ?alphaPoint:Point, mergeAlpha:Bool = false):Void

@:require(flash11_4) copyPixelsToByteArray (rect:Rectangle, data:ByteArray):Void

dispose ():Void

@:value({ smoothing : false }) draw (source:IBitmapDrawable, ?matrix:Matrix, ?colorTransform:ColorTransform, ?blendMode:BlendMode, ?clipRect:Rectangle, smoothing:Bool = false):Void

@:value({ smoothing : false }) @:require(flash11_3) drawWithQuality (source:IBitmapDrawable, ?matrix:Matrix, ?colorTransform:ColorTransform, ?blendMode:BlendMode, ?clipRect:Rectangle, smoothing:Bool = false, ?quality:StageQuality):Void

@:require(flash11_3) encode (rect:Rectangle, compressor:Object, ?byteArray:ByteArray):ByteArray

fillRect (rect:Rectangle, color:UInt):Void

floodFill (x:Int, y:Int, color:UInt):Void

generateFilterRect (sourceRect:Rectangle, filter:BitmapFilter):Rectangle

@:value({ findColor : true }) getColorBoundsRect (mask:UInt, color:UInt, findColor:Bool = true):Rectangle

getPixel (x:Int, y:Int):UInt

getPixel32 (x:Int, y:Int):UInt

getPixels (rect:Rectangle):ByteArray

@:require(flash10) getVector (rect:Rectangle):Vector<UInt>

@:require(flash10) histogram (?hRect:Rectangle):Vector<Vector<Float>>

@:value({ secondAlphaThreshold : 1 }) hitTest (firstPoint:Point, firstAlphaThreshold:UInt, secondObject:Object, ?secondBitmapDataPoint:Point, secondAlphaThreshold:UInt = 1):Bool

lock ():Void

merge (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, redMultiplier:UInt, greenMultiplier:UInt, blueMultiplier:UInt, alphaMultiplier:UInt):Void

@:value({ grayScale : false, channelOptions : 7, high : 255, low : 0 }) noise (randomSeed:Int, low:UInt = 0, high:UInt = 255, channelOptions:UInt = 7, grayScale:Bool = false):Void

paletteMap (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, ?redArray:Array<Int>, ?greenArray:Array<Int>, ?blueArray:Array<Int>, ?alphaArray:Array<Int>):Void

@:value({ grayScale : false, channelOptions : 7 }) perlinNoise (baseX:Float, baseY:Float, numOctaves:UInt, randomSeed:Int, stitch:Bool, fractalNoise:Bool, channelOptions:UInt = 7, grayScale:Bool = false, ?offsets:Array<Point>):Void

@:value({ fillColor : 0, numPixels : 0, randomSeed : 0 }) pixelDissolve (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, randomSeed:Int = 0, numPixels:Int = 0, fillColor:UInt = 0):Int

scroll (x:Int, y:Int):Void

setPixel (x:Int, y:Int, color:UInt):Void

setPixel32 (x:Int, y:Int, color:UInt):Void

setPixels (rect:Rectangle, inputByteArray:ByteArray):Void

@:require(flash10) setVector (rect:Rectangle, inputVector:Vector<UInt>):Void

@:value({ copySource : false, mask : 0xFFFFFFFF, color : 0 }) threshold (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, operation:String, threshold:UInt, color:UInt = 0, mask:UInt = 0xFFFFFFFF, copySource:Bool = false):UInt

unlock (?changeRect:Rectangle):Void

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/display/BitmapData.html