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 = 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
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