Contains useful data of an image that is used by an nb.Atlas's instance.
Available since
0.1.0
.Constructor
Variables
read onlybytes:Bytes
Original bytes of the associated image. Same as the bytes after conversion from an Atlas's addX function.
read onlyconvertedBytes:Bytes = null
The last converted bytes of the associated image needed by the last call of the make function of the Atlas.
Resets to null if the last call didn't need to convert bytes.
read onlyh:Int = -1
Height of the associated image in atlas's texture. Determined only after a texture is made from atlas.
read onlyw:Int = -1
Width of the associated image in atlas's texture. Determined only after a texture is made from atlas.
Methods
convertTo(toFormat:PixelFormat):Void
Sets convertedBytes with the value of bytes converted, or null if bytes doesn't need to be converted.
Parameters:
toFormat | The format to convert |
|---|