class flash8.display.BitmapData

Available on flash8

Class Fields

static function loadBitmap(id:String):BitmapData

Instance Fields

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

function applyFilter(source:BitmapData, sourceRect:Rectangle<Int>, dest:Point<Int>, filter:BitmapFilter):Int

function clone():BitmapData

function compare(b:BitmapData):BitmapData

FP9 only

function copyChannel(source:BitmapData, sourceRect:Rectangle<Int>, dest:Point<Int>, sourceChannel:Int, destChannel:Int):Void

function copyPixels(src:BitmapData, srcRect:Rectangle<Int>, dst:Point<Int>, ?alpha:BitmapData, ?alphaPos:Point<Int>, ?mergeAlpha:Bool):Void

function dispose():Void

function draw(source:Dynamic, ?matrix:Matrix, ?colortrans:ColorTransform, ?blendMode:Dynamic, ?clipRect:Rectangle<Int>, ?smooth:Bool):Void

function fillRect(r:Rectangle<Int>, color:Int):Void

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

function generateFilterRect(sourceRect:Rectangle<Int>, filter:BitmapFilter):Rectangle<Int>

function getColorBoundsRect(mask:Int, color:Int, ?fillColor:Bool):Rectangle<Int>

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

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

function hitTest(firstPoint:Point<Int>, firstAlpha:Int, object:Dynamic, ?secondPoint:Point<Int>, ?secondAlpha:Int):Bool

function merge(src:BitmapData, srcRect:Rectangle<Int>, dst:Point<Int>, redMult:Int, greenMult:Int, blueMult:Int, alphaMult:Int):Void

function noise(seed:Int, ?low:Int, ?high:Int, ?channels:Int, ?gray:Bool):Void

function paletteMap(source:BitmapData, srcRect:Rectangle<Int>, dst:Point<Int>, ?reds:Array<Dynamic>, ?greens:Array<Dynamic>, ?blues:Array<Dynamic>, ?alphas:Array<Dynamic>):Void

function perlinNoise(x:Int, y:Int, num:Int, seed:Int, stitch:Bool, noise:Bool, ?channels:Int, ?gray:Bool, ?offsets:Array<Point<Float>>):Void

function pixelDissolve(src:BitmapData, srcRect:Rectangle<Int>, dst:Point<Int>, ?seed:Int, ?npixels:Int, ?fillColor:Int):Int

function scroll(dx:Int, dy:Int):Void

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

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

function threshold(src:BitmapData, srcRect:Rectangle<Int>, dstPoint:Point<Int>, op:String, threshold:Int, ?color:Int, ?mask:Int, ?copy:Bool):Int