molecular
Classes | Public Member Functions | List of all members
molecular::util::TgaFile2 Class Reference

Interface to TGA files. More...

#include <TgaFile.h>

Classes

struct  Header
 

Public Member Functions

 TgaFile2 (const void *data, size_t size)
 
uint16_t GetWidth () const
 
uint16_t GetHeight () const
 
PixelFormat GetFormat () const
 
const void * GetImageData () const
 
size_t GetImageSize () const
 
bool IsUpsideDown () const
 
unsigned int GetBytesPerPixel () const
 

Detailed Description

Interface to TGA files.

Indexed and/or RLE images not supported. Does not copy any data.

Constructor & Destructor Documentation

molecular::util::TgaFile2::TgaFile2 ( const void *  data,
size_t  size 
)
inline
Parameters
dataFile contents. Must be valid while this object is in use.

Member Function Documentation

unsigned int molecular::util::TgaFile2::GetBytesPerPixel ( ) const
inline
PixelFormat molecular::util::TgaFile2::GetFormat ( ) const
inline
uint16_t molecular::util::TgaFile2::GetHeight ( ) const
inline
const void* molecular::util::TgaFile2::GetImageData ( ) const
inline
size_t molecular::util::TgaFile2::GetImageSize ( ) const
inline
uint16_t molecular::util::TgaFile2::GetWidth ( ) const
inline
bool molecular::util::TgaFile2::IsUpsideDown ( ) const
inline

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