libwiigui 1.07
libwiigui is a GUI library for the Wii
 
Loading...
Searching...
No Matches
GuiImageData Class Reference

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.
 

Detailed Description

Converts image data into GX-useable RGBA8. Currently designed for use only with PNG files.

Constructor & Destructor Documentation

◆ GuiImageData()

GuiImageData::GuiImageData ( const u8 *  i,
int  maxw = 0,
int  maxh = 0 
)

Constructor Converts the image data to RGBA8 - expects PNG format

Parameters
iImage data
wMax image width (0 = not set)
hMax image height (0 = not set)

Constructor for the GuiImageData class.

◆ ~GuiImageData()

GuiImageData::~GuiImageData ( )

Destructor.

Destructor for the GuiImageData class.

Member Function Documentation

◆ GetHeight()

int GuiImageData::GetHeight ( )

Gets the image height

Returns
image height

◆ GetImage()

u8 * GuiImageData::GetImage ( )

Gets a pointer to the image data

Returns
pointer to image data

◆ GetWidth()

int GuiImageData::GetWidth ( )

Gets the image width

Returns
image width

The documentation for this class was generated from the following files: