class openfl.display.BitmapData

Class Fields

static function fromBase64(base64:String, type:String, ?onload:BitmapData ->Void): BitmapData

static function fromBytes(bytes:ByteArray, ?rawAlpha:ByteArray, ?onload:BitmapData ->Void): BitmapData

static function fromFile(path:String, ?onload:BitmapData ->Void?onerror:Void ->Void): BitmapData

static function fromImage(image:Image, ?transparent:Bool): BitmapData

Instance Fields

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

function __renderCairo(renderSession:RenderSession): Void

function __renderCairoMask(renderSession:RenderSession): Void

function __renderCanvas(renderSession:RenderSession): Void

function __renderCanvasMask(renderSession:RenderSession): Void

function __renderGL(renderSession:RenderSession): Void

function __updateChildren(transformOnly:Bool): Void

function __updateMask(maskGraphics:Graphics): Void

function __updateTransforms(?overrideTransform:Matrix): Void

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

function clone(): BitmapData

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

function compare(otherBitmapData:BitmapData): Dynamic

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

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

function dispose(): Void

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

function encode(rect:Rectangle, compressor:Dynamic, ?byteArray:ByteArray): ByteArray

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

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

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

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

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

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

function getPixels(rect:Rectangle): ByteArray

function getVector(rect:Rectangle): Vector<UInt>

function histogram(?hRect:Rectangle): Array<Array<Int>>

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

function lock(): Void

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

function noise(randomSeed:Int, ?low:Int, ?high:Int, ?channelOptions:Int, ?grayScale:Bool): Void

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

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

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

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

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

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

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

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

function unlock(?changeRect:Rectangle): Void