Rasterfarm-SDK
|
#include <tgacompressedimage.h>
Public Member Functions | |
TgaCompressedImage (const char *filename) | |
virtual | ~TgaCompressedImage () |
virtual Byte * | allocAndCreatePixels () |
![]() | |
TgaImage (const char *filename) | |
virtual | ~TgaImage () |
virtual void | save (const char *file) |
![]() | |
Image (const char *filename) | |
virtual | ~Image () |
uint | getWidth () const |
uint | getHeight () const |
Format | getFormat () const |
Byte * | getData () const |
Static Public Attributes | |
static const ByteArray | magic |
Additional Inherited Members | |
![]() | |
enum | Format { RGB_565 , RGB_888 , BGR_888 , RGBA_8888 , BGRA_8888 , RGBA_5551 , RGBA_4444 , BGRA_4444 , ALPHA_8 , GRAY_8 , GRAY_16 , GRAY_ALPHA_8_8 , GRAY_ALPHA_15_1 , DEPTH_8 , DEPTH_16 , DEPTH_24 } |
![]() | |
static Image * | createImage (const char *filename) |
static bool | isValid (const char *filename, const ByteArray &magic) |
static size_t | byteSize (PixelFormat pixelFormat) |
static Format | convert (PixelFormat pixelFormat) |
static bool | hasAlpha (PixelFormat pixelFormat) |
static PixelFormat | removeAlpha (PixelFormat pixelFormat) |
![]() | |
size_t | dataSize |
![]() | |
TgaHeader | header |
bool | flippedVertical |
Byte * | pImageData |
![]() | |
uint | width |
uint | height |
uint | channels |
Format | format |
Byte * | pData |
TgaCompressedImage::TgaCompressedImage | ( | const char * | filename | ) |
|
virtual |
|
virtual |
Creates a new array of pixels on the heap. Caller must delete as this data is not managed.
Reimplemented from TgaImage.
|
static |