Constructor

new (width:Int, height:Int, ?transparent:Bool, ?fillColor:UInt)

Variables

read onlyheight:Int

read onlyimage:Image

read onlyreadable:Bool

read onlyrect:Rectangle

read onlytransparent:Bool

read onlywidth:Int

Methods

__updateChildren (transformOnly:Bool):Void

__updateMask (maskGraphics:Graphics):Void

__updateTransforms (?overrideTransform:Matrix):Void

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

compare (otherBitmapData:BitmapData):Dynamic

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

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

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

drawWithQuality (source:IBitmapDrawable, ?matrix:Matrix, ?colorTransform:ColorTransform, ?blendMode:BlendMode, ?clipRect:Rectangle, ?smoothing:Bool, ?quality:StageQuality):Void

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

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

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

getColorBoundsRect (mask:Int, color:Int, ?findColor:Bool):Rectangle

hitTest (firstPoint:Point, firstAlphaThreshold:Int, secondObject:Object, ?secondBitmapDataPoint:Point, ?secondAlphaThreshold:Int):Bool

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

noise (randomSeed:Int, ?low:Int, ?high:Int, ?channelOptions:Int, ?grayScale:Bool):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, ?grayScale:Bool, ?offsets:Array<Point>):Void

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

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

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

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

threshold (sourceBitmapData:BitmapData, sourceRect:Rectangle, destPoint:Point, operation:String, threshold:Int, ?color:Int, ?mask:Int, ?copySource:Bool):Int

unlock (?changeRect:Rectangle):Void

Static methods

staticfromBase64 (base64:String, type:String):BitmapData

staticfromBytes (bytes:ByteArray, ?rawAlpha:ByteArray):BitmapData

staticfromImage (image:Image, ?transparent:Bool):BitmapData