Static methods

Constructor

new(width:Int, height:Int)

Variables

read onlyheight:Int

read onlywidth:Int

Methods

clear(color:Int):Void

inlinedispose():Void

draw(x:Int, y:Int, src:BitmapData, srcX:Int, srcY:Int, width:Int, height:Int, ?blendMode:BlendMode):Void

@:value({ smooth : true })drawScaled(x:Int, y:Int, width:Int, height:Int, src:BitmapData, srcX:Int, srcY:Int, srcWidth:Int, srcHeight:Int, ?blendMode:BlendMode, smooth:Bool = true):Void

fill(x:Int, y:Int, width:Int, height:Int, color:Int):Void

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

Access the pixel color value at the given position. Note : this function can be very slow if done many times and the BitmapData has not been locked.

line(x0:Int, y0:Int, x1:Int, y1:Int, color:Int):Void

lock():Void

Inform that we will perform several pixel operations on the BitmapData.

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

Modify the pixel color value at the given position. Note : this function can be very slow if done many times and the BitmapData has not been locked.

setPixels(pixels:Pixels):Void

sub(x:Float, y:Float, w:Int, h:Int):BitmapData

toPNG():Bytes

unlock():Void

Inform that we have finished performing pixel operations on the BitmapData.