Constructor

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

Variables

read onlyheight:Int

read onlyimage:Image

read onlyrect:Rectangle

read onlytransparent:Bool

read onlywidth:Int

Methods

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

compare(otherBitmapData:BitmapData):Object

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

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

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

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

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

getColorBoundsRect(mask:UInt, color:UInt, findColor:Bool = true):Rectangle

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

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

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

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

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

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

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

threshold(sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, operation:String, threshold:UInt, color:UInt = 0x00000000, mask:UInt = 0xFFFFFFFF, copySource:Bool = false):Int

unlock(?changeRect:Rectangle):Void

Static methods

staticinlinefromBase64(base64:String, type:String, ?onload:BitmapData‑>Void):BitmapData

staticinlinefromBytes(bytes:ByteArray, ?rawAlpha:ByteArray, ?onload:BitmapData‑>Void):BitmapData

staticinlinefromFile(path:String, ?onload:BitmapData‑>Void, ?onerror:Void‑>Void):BitmapData

staticinlinefromImage(image:Image, transparent:Bool = true):BitmapData