class ImageBuffer
package lime.graphics
ImageBuffer is a simple object for storing image data.
For higher-level operations, use the Image class.
Constructor
new (?data:UInt8Array, ?width:Int, ?height:Int, ?bitsPerPixel:Int, ?format:PixelFormat)
Creates a new ImageBuffer instance
Parameters:
data | (Optional) Initial |
|---|---|
width | (Optional) An initial |
height | (Optional) An initial |
bitsPerPixel | (Optional) The |
format | (Optional) The |
Variables
The data for this image, represented as a js.html.CanvasElement, js.html.Image or flash.display.BitmapData
Methods
clone ():ImageBuffer
Creates a duplicate of this ImageBuffer
If the current ImageBuffer has data or src information, this will be
cloned as well.
Returns:
A new ImageBuffer with duplicate values