package flash.display; #if !flash8 "This class is only accesible in Flash8" #end import flash.geom.Rectangle; import flash.geom.Point; extern class BitmapData { static function loadBitmap( id : String ) : BitmapData; var width : Int; var height : Int; var rectangle : Rectangle; var transparent : Bool; function new( width : Int, height : Int, ?transparent : Bool, ?fillcolor : Int ) : Void; function getPixel( x : Int, y : Int ) : Int; function setPixel( x : Int, y : Int, color : Int ) : Void; function getPixel32( x : Int, y : Int ) : Int; function setPixel32( x : Int, y : Int, color : Int ) : Void; function fillRect( r : Rectangle, color : Int ) : Void; function copyPixels( src : BitmapData, srcRect : Rectangle, dst : Point, ?alpha : BitmapData, ?alphaPos : Point, ?mergeAlpha : Bool ) : Void; function applyFilter( source : BitmapData, sourceRect : Rectangle, dest : Point, filter : flash.filters.BitmapFilter ) : Int; function scroll( dx : Int, dy : Int ) : Void; function threshold( src : BitmapData , srcRect : Rectangle, dstPoint : Point, op : String, threshold : Int, ?color : Int, ?mask : Int, ?copy : Bool ) : Int; function draw( source : Dynamic, ?matrix : flash.geom.Matrix, ?colortrans : flash.geom.ColorTransform, ?blendMode : Dynamic, ?clipRect : Rectangle, ?smooth : Bool) : Void; function pixelDissolve( src : BitmapData, srcRect : Rectangle, dst : Point, ?seed : Int, ?npixels : Int, ?fillColor : Int ) : Int; function floodFill( x : Int, y : Int, color : Int ) : Void; function getColorBoundsRect( mask : Int, color : Int, ?fillColor : Bool ) : Rectangle; function perlinNoise( x : Int, y : Int, num : Int, seed : Int, stitch : Bool, noise : Bool, ?channels : Int, ?gray : Bool, ?offsets : Array> ) : Void; function colorTransform( r : Rectangle, trans : flash.geom.ColorTransform ) : Void; function hitTest( firstPoint : Point, firstAlpha : Int, object : Dynamic, ?secondPoint : Point, ?secondAlpha : Int ) : Bool; function paletteMap( source : BitmapData, srcRect : Rectangle, dst : Point, ?reds : Array, ?greens : Array, ?blues : Array, ?alphas : Array ) : Void; function merge( src : BitmapData, srcRect : Rectangle, dst : Point, redMult : Int, greenMult : Int, blueMult : Int, alphaMult : Int ) : Void; function noise( seed : Int, ?low : Int, ?high : Int, ?channels : Int, ?gray : Bool ) : Void; function copyChannel( source : BitmapData, sourceRect : Rectangle, dest : Point, sourceChannel : Int, destChannel : Int ) : Void; function clone() : BitmapData; function dispose() : Void; function generateFilterRect(sourceRect : Rectangle, filter : flash.filters.BitmapFilter ) : Rectangle; /** FP9 only **/ function compare( b : BitmapData ) : BitmapData; // WTF ? }