2025-01-15 19:42:35 +01:00

39 lines
29 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en"><!-- use theme color or fallback -->
<!--use textcolor from settings, otherwise create a contrasting color to theme color-->
<head><meta charset="utf-8"/><link href="../../bootstrap/css/bootstrap.min.css" rel="stylesheet"/><link href="../../bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"/><link href="../../bootstrap/css/bootstrap-select.min.css" rel="stylesheet"/><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic" rel="stylesheet" type="text/css"/><link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,600,600italic,400" rel="stylesheet" type="text/css"/><link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet" type="text/css"/><script src="../../jquery-1.9.1.min.js"></script><script src="../../bootstrap/js/bootstrap.min.js"></script><script src="../../bootstrap/js/bootstrap-select.min.js"></script><link href="../../styles.css" rel="stylesheet"/><link href="../../haxe-nav.css" rel="stylesheet"/><script type="text/javascript">var dox = {rootPath: "../../",platforms: ["Neko","Android","Flash","iOS","macOS","Linux","HTML5","Windows"]};</script><script type="text/javascript" src="../../nav.js"></script><script type="text/javascript" src="../../index.js"></script><link rel="icon" href="../../favicon.ico" type="image/x-icon"></link><title>lime.graphics.Image - API Reference</title></head><body><style>
a, code .type {
color: #24afc4;
}
.navbar .brand {
display: inline-block;
float: none;
text-shadow: 0 0 0 transparent;
}
.nav-list>.active>a.treeLink, .nav-list>.active>a.treeLink:hover, .nav-list>.active>a.treeLink:focus {
background: #24afc4;
color: #ffffff;
text-shadow: 0 0 0 transparent;
}
.navbar .container {
width: 940px ;
}
@media (max-width: 767px) {
.navbar .container {
width: auto;
}
}
@media (max-width: 979px) and (min-width: 768px) {
.navbar .container {
width: 724px;
}
}
@media (min-width: 1200px) {
.navbar .container {
width: 1170px;
}
}
.navbar .container img {
margin: 5px 0 0 4px;
}
</style><nav class="nav"><div class="navbar"><div class="navbar-inner" style="background:#FAFAFA; border-bottom:1px solid rgba(0,0,0,.09)"><div class="container"><a class="brand" href="http://www.openfl.org"><img alt="" src="http://www.openfl.org/images/logo.png"/></a><a class="brand" style="color:#777777" href="../../">API Reference</a></div></div></div></nav><div class="container main-content"><div class="row-fluid"><div class="span3"><div class="well sidebar-nav"><form class="form-search" id="searchForm"><div class="input-prepend input-block-level"><span class="add-on"><i class="icon-search"></i></span><input id="search" type="text" placeholder="Search" autocomplete="off"/></div></form><div class="dropdown"><select id="select-platform" class="selectpicker" title="Filter by platform" data-width="100%"><option value="all" selected="true">All Platforms</option><option>Neko</option><option>Android</option><option>Flash</option><option>iOS</option><option>macOS</option><option>Linux</option><option>HTML5</option><option>Windows</option></select></div></div><div class="well sidebar-nav"><div id="nav"></div></div></div><div class="span9"><div class="page-header"><h1><small>class</small> Image</h1><h4><small>package <a href="../../lime/graphics/index.html">lime.graphics</a></small></h4> <p class="availability"><hr/><em>Available on all platforms</em></p></div><div class="body"><div class="doc doc-main"><div class="indent"><p></p></div></div><h3 class="section">Constructor</h3><div class="fields"><div class="field "><a name="new"></a><h3><p><code><a href="#new"><span class="identifier">new</span></a> (<span style="white-space:nowrap">?buffer:<a class="type" title="" href="../../lime/graphics/ImageBuffer.html">ImageBuffer</a>,</span> <span style="white-space:nowrap">offsetX:<a class="type" title="The standard Int type." href="../../Int.html">Int</a> = 0,</span> <span style="white-space:nowrap">offsetY:<a class="type" title="The standard Int type." href="../../Int.html">Int</a> = 0,</span> <span style="white-space:nowrap">width:<a class="type" title="The standard Int type." href="../../Int.html">Int</a> = -1,</span> <span style="white-space:nowrap">height:<a class="type" title="The standard Int type." href="../../Int.html">Int</a> = -1,</span> <span style="white-space:nowrap">?color:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">?type:<a class="type" title="" href="../../lime/graphics/ImageType.html">ImageType</a></span>)</code></p></h3><div class="doc"><p></p></div></div></div><h3 class="section">Variables</h3><div class="fields"><div class="field "><a name="buffer"></a><h3><p><code><a href="../../lime/graphics/Image.html#buffer"><span class="identifier">buffer</span></a>:<a class="type" title="" href="../../lime/graphics/ImageBuffer.html">ImageBuffer</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="data"></a><h3><p><code><a href="../../lime/graphics/Image.html#data"><span class="identifier">data</span></a>:<a class="type" title="" href="../../lime/utils/UInt8Array.html">UInt8Array</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="dirty"></a><h3><p><code><a href="../../lime/graphics/Image.html#dirty"><span class="identifier">dirty</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="format"></a><h3><p><code><a href="../../lime/graphics/Image.html#format"><span class="identifier">format</span></a>:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="height"></a><h3><p><code><a href="../../lime/graphics/Image.html#height"><span class="identifier">height</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="offsetX"></a><h3><p><code><a href="../../lime/graphics/Image.html#offsetX"><span class="identifier">offsetX</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="offsetY"></a><h3><p><code><a href="../../lime/graphics/Image.html#offsetY"><span class="identifier">offsetY</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="powerOfTwo"></a><h3><p><code><a href="../../lime/graphics/Image.html#powerOfTwo"><span class="identifier">powerOfTwo</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="premultiplied"></a><h3><p><code><a href="../../lime/graphics/Image.html#premultiplied"><span class="identifier">premultiplied</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="rect"></a><h3><p><code><span class="label">read only</span><a href="../../lime/graphics/Image.html#rect"><span class="identifier">rect</span></a>:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="src"></a><h3><p><code><a href="../../lime/graphics/Image.html#src"><span class="identifier">src</span></a>:<a class="type" title="Dynamic is a special type which is compatible with all other types." href="../../Dynamic.html">Dynamic</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="transparent"></a><h3><p><code><a href="../../lime/graphics/Image.html#transparent"><span class="identifier">transparent</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="type"></a><h3><p><code><a href="../../lime/graphics/Image.html#type"><span class="identifier">type</span></a>:<a class="type" title="" href="../../lime/graphics/ImageType.html">ImageType</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="version"></a><h3><p><code><a href="../../lime/graphics/Image.html#version"><span class="identifier">version</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="width"></a><h3><p><code><a href="../../lime/graphics/Image.html#width"><span class="identifier">width</span></a>:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="x"></a><h3><p><code><a href="../../lime/graphics/Image.html#x"><span class="identifier">x</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="y"></a><h3><p><code><a href="../../lime/graphics/Image.html#y"><span class="identifier">y</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div></div><h3 class="section">Methods</h3><div class="fields"><div class="field "><a name="clone"></a><h3><p><code><a href="#clone"><span class="identifier">clone</span></a> ():<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="colorTransform"></a><h3><p><code><a href="#colorTransform"><span class="identifier">colorTransform</span></a> (<span style="white-space:nowrap">rect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">colorMatrix:<a class="type" title="" href="../../lime/math/ColorMatrix.html">ColorMatrix</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="copyChannel"></a><h3><p><code><a href="#copyChannel"><span class="identifier">copyChannel</span></a> (<span style="white-space:nowrap">sourceImage:<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>,</span> <span style="white-space:nowrap">sourceRect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">destPoint:<a class="type" title="" href="../../lime/math/Vector2.html">Vector2</a>,</span> <span style="white-space:nowrap">sourceChannel:<a class="type" title="" href="../../lime/graphics/ImageChannel.html">ImageChannel</a>,</span> <span style="white-space:nowrap">destChannel:<a class="type" title="" href="../../lime/graphics/ImageChannel.html">ImageChannel</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="copyPixels"></a><h3><p><code><a href="#copyPixels"><span class="identifier">copyPixels</span></a> (<span style="white-space:nowrap">sourceImage:<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>,</span> <span style="white-space:nowrap">sourceRect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">destPoint:<a class="type" title="" href="../../lime/math/Vector2.html">Vector2</a>,</span> <span style="white-space:nowrap">?alphaImage:<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>,</span> <span style="white-space:nowrap">?alphaPoint:<a class="type" title="" href="../../lime/math/Vector2.html">Vector2</a>,</span> <span style="white-space:nowrap">mergeAlpha:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="encode"></a><h3><p><code><a href="#encode"><span class="identifier">encode</span></a> (<span style="white-space:nowrap">format:<a class="type" title="The basic String class." href="../../String.html">String</a> = "png",</span> <span style="white-space:nowrap">quality:<a class="type" title="The standard Int type." href="../../Int.html">Int</a> = 90</span>):<a class="type" title="" href="../../haxe/io/Bytes.html">Bytes</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="fillRect"></a><h3><p><code><a href="#fillRect"><span class="identifier">fillRect</span></a> (<span style="white-space:nowrap">rect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">color:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="floodFill"></a><h3><p><code><a href="#floodFill"><span class="identifier">floodFill</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">color:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="getColorBoundsRect"></a><h3><p><code><a href="#getColorBoundsRect"><span class="identifier">getColorBoundsRect</span></a> (<span style="white-space:nowrap">mask:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">color:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">findColor:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = true,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="getPixel"></a><h3><p><code><a href="#getPixel"><span class="identifier">getPixel</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="getPixel32"></a><h3><p><code><a href="#getPixel32"><span class="identifier">getPixel32</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="getPixels"></a><h3><p><code><a href="#getPixels"><span class="identifier">getPixels</span></a> (<span style="white-space:nowrap">rect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="" href="../../haxe/io/Bytes.html">Bytes</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="merge"></a><h3><p><code><a href="#merge"><span class="identifier">merge</span></a> (<span style="white-space:nowrap">sourceImage:<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>,</span> <span style="white-space:nowrap">sourceRect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">destPoint:<a class="type" title="" href="../../lime/math/Vector2.html">Vector2</a>,</span> <span style="white-space:nowrap">redMultiplier:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">greenMultiplier:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">blueMultiplier:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">alphaMultiplier:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="resize"></a><h3><p><code><a href="#resize"><span class="identifier">resize</span></a> (<span style="white-space:nowrap">newWidth:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">newHeight:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="scroll"></a><h3><p><code><a href="#scroll"><span class="identifier">scroll</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Int type." href="../../Int.html">Int</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="setPixel"></a><h3><p><code><a href="#setPixel"><span class="identifier">setPixel</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">color:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="setPixel32"></a><h3><p><code><a href="#setPixel32"><span class="identifier">setPixel32</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">color:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="setPixels"></a><h3><p><code><a href="#setPixels"><span class="identifier">setPixels</span></a> (<span style="white-space:nowrap">rect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">bytePointer:<a class="type" title="" href="../../lime/utils/BytePointer.html">BytePointer</a>,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a>,</span> <span style="white-space:nowrap">?endian:<a class="type" title="" href="../../lime/system/Endian.html">Endian</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="threshold"></a><h3><p><code><a href="#threshold"><span class="identifier">threshold</span></a> (<span style="white-space:nowrap">sourceImage:<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>,</span> <span style="white-space:nowrap">sourceRect:<a class="type" title="" href="../../lime/math/Rectangle.html">Rectangle</a>,</span> <span style="white-space:nowrap">destPoint:<a class="type" title="" href="../../lime/math/Vector2.html">Vector2</a>,</span> <span style="white-space:nowrap">operation:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">threshold:<a class="type" title="The standard Int type." href="../../Int.html">Int</a>,</span> <span style="white-space:nowrap">color:<a class="type" title="The standard Int type." href="../../Int.html">Int</a> = 0x00000000,</span> <span style="white-space:nowrap">mask:<a class="type" title="The standard Int type." href="../../Int.html">Int</a> = 0xFFFFFFFF,</span> <span style="white-space:nowrap">copySource:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false,</span> <span style="white-space:nowrap">?format:<a class="type" title="" href="../../lime/graphics/PixelFormat.html">PixelFormat</a></span>):<a class="type" title="The standard Int type." href="../../Int.html">Int</a></code></p></h3><div class="doc"><p></p></div></div></div><h3 class="section">Static methods</h3><div class="fields"><div class="field "><a name="fromBase64"></a><h3><p><code><span class="label">static</span><a href="#fromBase64"><span class="identifier">fromBase64</span></a> (<span style="white-space:nowrap">base64:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">type:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="fromBitmapData"></a><h3><p><code><span class="label">static</span><a href="#fromBitmapData"><span class="identifier">fromBitmapData</span></a> (<span style="white-space:nowrap">bitmapData:<a class="type" title="Dynamic is a special type which is compatible with all other types." href="../../Dynamic.html">Dynamic</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><p class="availability"><em>Available on Neko, Android, iOS, macOS, Linux, HTML5, Windows</em></p><div class="doc"><p></p></div></div><div class="field "><a name="fromBitmapData"></a><h3><p><code><span class="label">static</span><a href="#fromBitmapData"><span class="identifier">fromBitmapData</span></a> (<span style="white-space:nowrap">bitmapData:<span class="type">BitmapData</span></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><p class="availability"><em>Available on Flash</em></p><div class="doc"><p></p></div></div><div class="field "><a name="fromBytes"></a><h3><p><code><span class="label">static</span><a href="#fromBytes"><span class="identifier">fromBytes</span></a> (<span style="white-space:nowrap">bytes:<a class="type" title="" href="../../haxe/io/Bytes.html">Bytes</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="fromCanvas"></a><h3><p><code><span class="label">static</span><a href="#fromCanvas"><span class="identifier">fromCanvas</span></a> (<span style="white-space:nowrap">canvas:<a class="type" title="Dynamic is a special type which is compatible with all other types." href="../../Dynamic.html">Dynamic</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><p class="availability"><em>Available on Neko, Android, Flash, iOS, macOS, Linux, Windows</em></p><div class="doc"><p></p></div></div><div class="field "><a name="fromCanvas"></a><h3><p><code><span class="label">static</span><a href="#fromCanvas"><span class="identifier">fromCanvas</span></a> (<span style="white-space:nowrap">canvas:<a class="type" title="The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements." href="../../js/html/CanvasElement.html">CanvasElement</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><p class="availability"><em>Available on HTML5</em></p><div class="doc"><p></p></div></div><div class="field "><a name="fromFile"></a><h3><p><code><span class="label">static</span><a href="#fromFile"><span class="identifier">fromFile</span></a> (<span style="white-space:nowrap">path:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="fromImageElement"></a><h3><p><code><span class="label">static</span><a href="#fromImageElement"><span class="identifier">fromImageElement</span></a> (<span style="white-space:nowrap">image:<a class="type" title="Dynamic is a special type which is compatible with all other types." href="../../Dynamic.html">Dynamic</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><p class="availability"><em>Available on Neko, Android, Flash, iOS, macOS, Linux, Windows</em></p><div class="doc"><p></p></div></div><div class="field "><a name="fromImageElement"></a><h3><p><code><span class="label">static</span><a href="#fromImageElement"><span class="identifier">fromImageElement</span></a> (<span style="white-space:nowrap">image:<a class="type" title="The HTMLImageElement interface provides special properties and methods  for manipulating the layout and presentation of img elements." href="../../js/html/ImageElement.html">ImageElement</a></span>):<a class="type" title="" href="../../lime/graphics/Image.html">Image</a></code></p></h3><p class="availability"><em>Available on HTML5</em></p><div class="doc"><p></p></div></div><div class="field "><a name="loadFromBase64"></a><h3><p><code><span class="label">static</span><a href="#loadFromBase64"><span class="identifier">loadFromBase64</span></a> (<span style="white-space:nowrap">base64:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">type:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="" href="../../lime/app/Future.html">Future</a>&lt;<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>&gt;</code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="loadFromBytes"></a><h3><p><code><span class="label">static</span><a href="#loadFromBytes"><span class="identifier">loadFromBytes</span></a> (<span style="white-space:nowrap">bytes:<a class="type" title="" href="../../haxe/io/Bytes.html">Bytes</a></span>):<a class="type" title="" href="../../lime/app/Future.html">Future</a>&lt;<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>&gt;</code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="loadFromFile"></a><h3><p><code><span class="label">static</span><a href="#loadFromFile"><span class="identifier">loadFromFile</span></a> (<span style="white-space:nowrap">path:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="" href="../../lime/app/Future.html">Future</a>&lt;<a class="type" title="" href="../../lime/graphics/Image.html">Image</a>&gt;</code></p></h3><div class="doc"><p></p></div></div></div></div></div></div></div><footer class="section site-footer" style="background:#FAFAFA"><div class="container"><div class="copyright"><p style="color:#777777">&copy; 2017 &nbsp;<a style="color:#777777" href="http://www.openfl.org">http://www.openfl.org</a></p></div></div></footer><script src="../..//highlighter.js"></script><link href="../../highlighter.css" rel="stylesheet"/></body></html>