class lime.graphics.Image

Class Fields

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

static function fromBitmapData(bitmapData:Dynamic): Image

static function fromBytes(bytes:Bytes, ?onload:Image ->Void): Image

static function fromCanvas(canvas:Dynamic): Image

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

static function fromImageElement(image:Dynamic): Image

Instance Fields

var x:Float

var y:Float

function new(?buffer:ImageBuffer, ?offsetX:Int, ?offsetY:Int, ?width:Int, ?height:Int, ?color:Int, ?type:ImageType): 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, ?alphaPoint:Vector2, ?mergeAlpha:Bool): Void

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

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

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

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

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

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

function getPixels(rect:Rectangle, ?format:PixelFormat): Bytes

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

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

function scroll(x:Int, y:Int): Void

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

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

function setPixels(rect:Rectangle, bytes:Bytes, ?format:PixelFormat): Void

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