Public Member Functions | Protected Attributes

GuiImageData Class Reference

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

#include <gui.h>

List of all members.

Public Member Functions

 GuiImageData (const u8 *i)
 ~GuiImageData ()
 Destructor.
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.

Definition at line 498 of file gui.h.


Constructor & Destructor Documentation

GuiImageData::GuiImageData ( const u8 *  img  ) 

Constructor Converts the image data to RGBA8 - expects PNG format

Parameters:
i Image data

Constructor for the GuiImageData class.

Definition at line 16 of file gui_imagedata.cpp.

GuiImageData::~GuiImageData (  ) 

Destructor.

Destructor for the GuiImageData class.

Definition at line 62 of file gui_imagedata.cpp.


Member Function Documentation

int GuiImageData::GetHeight (  ) 

Gets the image height

Returns:
image height

Definition at line 81 of file gui_imagedata.cpp.

u8 * GuiImageData::GetImage (  ) 

Gets a pointer to the image data

Returns:
pointer to image data

Definition at line 71 of file gui_imagedata.cpp.

int GuiImageData::GetWidth (  ) 

Gets the image width

Returns:
image width

Definition at line 76 of file gui_imagedata.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Defines