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] |
| Powertek.Imaging.PtTgaLoader.PtTgaLoader | ( | ) |
TGA Bitmap Loader.
| 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.
| 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.
| 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.
| filename | Name of the file |
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.
1.5.7.1