Converts image data into GX-useable RGBA8. Currently designed for use only with PNG files. More...
#include <gui_imagedata.h>
Public Member Functions | |
GuiImageData (const u8 *i, int w=0, int h=0) | |
~GuiImageData () | |
Destructor. More... | |
u8 * | GetImage () |
int | GetWidth () |
int | GetHeight () |
Protected Attributes | |
u8 * | data |
Image data. | |
int | height |
Height of image. | |
int | width |
Width of image. | |
Converts image data into GX-useable RGBA8. Currently designed for use only with PNG files.
GuiImageData::GuiImageData | ( | const u8 * | i, |
int | maxw = 0 , |
||
int | maxh = 0 |
||
) |
Constructor Converts the image data to RGBA8 - expects PNG format
i | Image data |
w | Max image width (0 = not set) |
h | Max image height (0 = not set) |
Constructor for the GuiImageData class.
GuiImageData::~GuiImageData | ( | ) |
Destructor.
Destructor for the GuiImageData class.
int GuiImageData::GetHeight | ( | ) |
Gets the image height
u8 * GuiImageData::GetImage | ( | ) |
Gets a pointer to the image data
int GuiImageData::GetWidth | ( | ) |
Gets the image width