Constructor

new (?buffer:ImageBuffer, ?offsetX:Int, ?offsetY:Int, ?width:Int, ?height:Int, ?color:Int, ?type:ImageType)

Variables

Methods

copyChannel (sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, sourceChannel:ImageChannel, destChannel:ImageChannel):Void

copyPixels (sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, ?alphaImage:Image, ?alphaPoint:Vector2, ?mergeAlpha:Bool):Void

encode (?format:String, ?quality:Int):Bytes

fillRect (rect:Rectangle, color:Int, ?format:PixelFormat):Void

floodFill (x:Int, y:Int, color:Int, ?format:PixelFormat):Void

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

getPixel (x:Int, y:Int, ?format:PixelFormat):Int

getPixel32 (x:Int, y:Int, ?format:PixelFormat):Int

merge (sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, redMultiplier:Int, greenMultiplier:Int, blueMultiplier:Int, alphaMultiplier:Int):Void

resize (newWidth:Int, newHeight:Int):Void

setPixel (x:Int, y:Int, color:Int, ?format:PixelFormat):Void

setPixel32 (x:Int, y:Int, color:Int, ?format:PixelFormat):Void

setPixels (rect:Rectangle, bytePointer:BytePointer, ?format:PixelFormat, ?endian:Endian):Void

threshold (sourceImage:Image, sourceRect:Rectangle, destPoint:Vector2, operation:String, threshold:Int, ?color:Int, ?mask:Int, ?copySource:Bool, ?format:PixelFormat):Int

Static methods

staticfromBase64 (base64:String, type:String):Image

staticfromBitmapData (bitmapData:Dynamic):Image

staticfromBytes (bytes:Bytes):Image

staticfromCanvas (canvas:Dynamic):Image

staticfromFile (path:String):Image

staticloadFromBase64 (base64:String, type:String):Future<Image>