# GuiImageData Class Reference

`#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

## 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.

GuiImageData::~GuiImageData | ( |  | ) |

Destructor.

Destructor for the GuiImageData class.

## Member Function Documentation

int GuiImageData::GetHeight | ( |  | ) |

Gets the image height

Returns:
  image height

u8 * GuiImageData::GetImage | ( |  | ) |

Gets a pointer to the image data

Returns:
  pointer to image data

int GuiImageData::GetWidth | ( |  | ) |

Gets the image width

Returns:
  image width

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

- gui.h
- gui_imagedata.cpp