ImageBuffer
is a simple object for storing image data.
For higher-level operations, use the Image
class.
Constructor
new(?data:UInt8Array, width:Int = 0, height:Int = 0, bitsPerPixel:Int = 32, ?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
src:Dynamic
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