Constructor

@:value({ f : Types.PixelFormat.RGBA, h : 1, w : 1 })new (w:Int = 1, h:Int = 1, f:PixelFormat = Types.PixelFormat.RGBA)

Variables

@:value(Color.create(255, 255, 255, 255))bg:Color = Color.create(255, 255, 255, 255)

data:Bytes

height:Int

@:value(false)int32Mode:Bool = false

Switch between byte-by-byte and int32 modalities for reading and writing pixels with get/set.

@:value(true)noRangeCheck:Bool = true

width:Int

Methods

inlinebyteIndex (x:Int, y:Int):Int

@:value({ fill_ : false })clone (fill_:Bool = false):PNGBitmap

compare (b:Bitmap, ?regionB:Rectangle, ?thisRegion:Rectangle):Float

copyFrom (b:Bitmap, bCoords:Point, regionThis:Rectangle):Void

inlineequals (b:Bitmap, ?region:Rectangle):Bool

fill (?bg_:Color):Void

get (x:Int, y:Int, ?noError:Bool):Color

load (input:Input, ?f:PixelFormat):Void

save (output:Output):Void

set (x:Int, y:Int, c:Color, ?noError:Bool):Bool

toString ():String