#include <TargaImage.h>
Public Member Functions | |
| TargaImage () | |
| virtual | ~TargaImage () |
| bool | Load (string filename) |
| void | Release () |
| bool | FlipVertical () |
| unsigned short | GetWidth () |
| unsigned short | GetHeight () |
| unsigned char | GetImageFormat () |
| bool | ConvertRGBAToRGB () |
| bool | ConvertRGBToRGBA (unsigned char alphaValue) |
| unsigned char * | GetImage () |
| TargaImage::TargaImage | ( | ) |
Constructor
| TargaImage::~TargaImage | ( | ) | [virtual] |
Destructor
| bool TargaImage::Load | ( | string | filename | ) |
loading a .tga file
| filename | filename of the image |
| void TargaImage::Release | ( | ) |
unload image
| bool TargaImage::FlipVertical | ( | ) |
flips image vertically
| unsigned short TargaImage::GetWidth | ( | ) | [inline] |
returns the width of the image
| unsigned short TargaImage::GetHeight | ( | ) | [inline] |
returns the height of the image
| unsigned char TargaImage::GetImageFormat | ( | ) | [inline] |
returns the format of the image
| bool TargaImage::ConvertRGBAToRGB | ( | ) |
converts RGBA format to RGB format
| bool TargaImage::ConvertRGBToRGBA | ( | unsigned char | alphaValue | ) |
converts RGB format to RGBA format
| alphaValue | the new alphaValue of the image |
| unsigned char* TargaImage::GetImage | ( | ) | [inline] |
returns the current image data
1.5.4