Powertek.Imaging.PtTgaLoader Class Reference

TGA Bitmap Loader. More...

List of all members.

Public Member Functions

 PtTgaLoader ()
void Free ()
bool LoadFromFile (String filename)
void GetData (out byte[] ar, out int width, out int height, out int BytesPerPixel, bool flipY)
void GetData (out Bitmap bmp, bool flipY)

Properties

int Width [get]
int Height [get]
int BytesPerPixel [get]
bool NewTGAFormat [get]
TgaFileFormat TGAFileFormat [get]


Detailed Description


Constructor & Destructor Documentation

Powertek.Imaging.PtTgaLoader.PtTgaLoader (  ) 

TGA Bitmap Loader.


Member Function Documentation

void Powertek.Imaging.PtTgaLoader.Free (  ) 

Free internal data.

void Powertek.Imaging.PtTgaLoader.GetData ( out Bitmap  bmp,
bool  flipY 
)

Get the internal bitmap data, file must be load before.

Parameters:
bmp Output Bitmap or null on erro
flipY Apply a hirizontal flip onto the bitmap

void Powertek.Imaging.PtTgaLoader.GetData ( out byte[]  ar,
out int  width,
out int  height,
out int  BytesPerPixel,
bool  flipY 
)

Get the internal bitmap data, file must be load before.

Parameters:
ar Byte array representing the pixels of the bitmap if all ok, else null
width Width of the bitmap
height Height of the bitmap
BytesPerPixel Bytes to use for every pixel, valid are 3 or 4
flipY Apply a hirizontal flip onto the array

bool Powertek.Imaging.PtTgaLoader.LoadFromFile ( String  filename  ) 

Load a TGA Image from file into the internal buffer.

Parameters:
filename Name of the file
Returns:
False on error, else true


Property Documentation

int Powertek.Imaging.PtTgaLoader.BytesPerPixel [get]

Bytes per Pixel of the internal bitmap.

int Powertek.Imaging.PtTgaLoader.Height [get]

Height of the internal bitmap.

bool Powertek.Imaging.PtTgaLoader.NewTGAFormat [get]

The NewTGAFormat switch of the internal bitmap.

TgaFileFormat Powertek.Imaging.PtTgaLoader.TGAFileFormat [get]

The Format of the internal bitmap.

int Powertek.Imaging.PtTgaLoader.Width [get]

Width of the internal bitmap.


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

Generated on Thu Nov 20 04:48:15 2008 for Powertek.Imaging, 2.0.2.46 by  doxygen 1.5.7.1