TargaImage Class Reference

#include <TargaImage.h>

List of all members.

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 ()


Detailed Description

TargaImage class to load *.tga image files

Constructor & Destructor Documentation

TargaImage::TargaImage (  ) 

Constructor

TargaImage::~TargaImage (  )  [virtual]

Destructor


Member Function Documentation

bool TargaImage::Load ( string  filename  ) 

loading a .tga file

Parameters:
filename filename of the image
Returns:
success

void TargaImage::Release (  ) 

unload image

bool TargaImage::FlipVertical (  ) 

flips image vertically

unsigned short TargaImage::GetWidth (  )  [inline]

returns the width of the image

Returns:
width of the image

unsigned short TargaImage::GetHeight (  )  [inline]

returns the height of the image

Returns:
height of the image

unsigned char TargaImage::GetImageFormat (  )  [inline]

returns the format of the image

Returns:
format of the image

bool TargaImage::ConvertRGBAToRGB (  ) 

converts RGBA format to RGB format

Returns:
success

bool TargaImage::ConvertRGBToRGBA ( unsigned char  alphaValue  ) 

converts RGB format to RGBA format

Parameters:
alphaValue the new alphaValue of the image
Returns:
success

unsigned char* TargaImage::GetImage (  )  [inline]

returns the current image data

Returns:
current image data


The documentation for this class was generated from the following files:
Generated on Fri May 29 18:22:30 2009 for VisLink by  doxygen 1.5.4