class Bitmap
package geometrize.bitmap
Helper class for working with bitmap data.
Variables
Methods
Static methods
staticinline create (w:Int, h:Int, color:Rgba):Bitmap
Creates a new bitmap, filled with the given color.
Parameters:
w | The width of the bitmap. |
---|---|
h | The height of the bitmap. |
color | The starting background color of the bitmap. |
Returns:
The new bitmap.
staticinline createFromByteArray (w:Int, h:Int, bytes:Array<Int>):Bitmap
Creates a new bitmap from the supplied array of bytes. Useful for target language consumers that don't have direct access to the Bytes Haxe standard library class.
Parameters:
w | The width of the bitmap. |
---|---|
h | The height of the bitmap. |
bytes | The byte data to fill the bitmap with, must be width * height * depth long. |
Returns:
The new bitmap.
staticinline createFromBytes (w:Int, h:Int, bytes:Bytes):Bitmap
Creates a new bitmap from the supplied byte data.
Parameters:
w | The width of the bitmap. |
---|---|
h | The height of the bitmap. |
bytes | The byte data to fill the bitmap with, must be width * height * depth long. |
Returns:
The new bitmap.