class lime.graphics.Image

Class Fields

static function fromBase64(base64:String, type:String, onload:Image ->Void): Image

static function fromBitmapData(bitmapData:BitmapData): Image

static function fromBytes(bytes:ByteArray, ?onload:Image ->Void = null): Image

static function fromCanvas(canvas:Dynamic): Image

static function fromFile(path:String, ?onload:Image ->Void = null?onerror:Void ->Void = null): Image

static function fromImageElement(image:Dynamic): Image

Instance Fields

function new(?buffer:ImageBuffer = null, ?offsetX:Int = 0, ?offsetY:Int = 0, ?width:Int = 0, ?height:Int = 0, ?color:Int = null, ?type:ImageType = null): Void

function clone(): Image

function colorTransform(rect:Rectangle, colorMatrix:ColorMatrix): Void

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

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

function encode(?format:String = 'png', ?quality:Int = 90): ByteArray

function fillRect(rect:Rectangle, color:Int): Void

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

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

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

function getPixels(rect:Rectangle): ByteArray

function get_rect(): Rectangle

function get_src(): Dynamic

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

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

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

function setPixels(rect:Rectangle, byteArray:ByteArray): Void