wxImageBlock Class Reference

#include <imageutils/imageblock.h>

List of all members.

Public Member Functions

 wxImageBlock ()
 wxImageBlock (const wxImageBlock &block)
 ~wxImageBlock ()
void Init ()
void Clear ()
virtual bool MakeImageBlock (const wxString &filename, int imageType, wxImage &image, bool convertToJPEG=true)
virtual bool MakeImageBlock (const wxString &filename, wxImage &image, int imageType=wxBITMAP_TYPE_PNG, int quality=80)
virtual bool MakeImageBlock (wxImage &image, int imageType=wxBITMAP_TYPE_PNG, int quality=80)
virtual bool MakeImageBlock (const wxImage &image, int imageType=wxBITMAP_TYPE_PNG, int quality=80)
bool Write (const wxString &filename)
bool Write (wxOutputStream &stream)
bool Write (wxOutputStream &stream, wxDataOutputStream &dataStream)
bool WriteHex (wxOutputStream &stream)
bool ReadHex (wxInputStream &stream, int length, int imageType)
bool Read (wxInputStream &stream)
bool Read (wxInputStream &stream, wxDataInputStream &dataStream)
void Copy (const wxImageBlock &block)
bool Load (wxImage &image)
void operator= (const wxImageBlock &block)
unsigned char * GetData () const
size_t GetDataSize () const
int GetImageType () const
void SetData (unsigned char *image)
void SetDataSize (size_t size)
void SetImageType (int imageType)
bool Ok () const

Static Public Member Functions

static unsigned char * ReadBlock (wxInputStream &stream, size_t size)
 Implementation.
static unsigned char * ReadBlock (const wxString &filename, size_t size)
static bool WriteBlock (wxOutputStream &stream, unsigned char *block, size_t size)
static bool WriteBlock (const wxString &filename, unsigned char *block, size_t size)
static int DetermineImageType (const wxString &filename)
static wxString DetermineExtension (int imageType=-1)

Protected Attributes

unsigned char * m_data
size_t m_dataSize
int m_imageType


Constructor & Destructor Documentation

wxImageBlock::wxImageBlock (  ) 

wxImageBlock::wxImageBlock ( const wxImageBlock block  ) 

wxImageBlock::~wxImageBlock (  ) 


Member Function Documentation

void wxImageBlock::Clear (  ) 

void wxImageBlock::Copy ( const wxImageBlock block  ) 

wxString wxImageBlock::DetermineExtension ( int  imageType = -1  )  [static]

int wxImageBlock::DetermineImageType ( const wxString &  filename  )  [static]

unsigned char* wxImageBlock::GetData (  )  const [inline]

size_t wxImageBlock::GetDataSize (  )  const [inline]

int wxImageBlock::GetImageType (  )  const [inline]

void wxImageBlock::Init (  ) 

bool wxImageBlock::Load ( wxImage &  image  ) 

bool wxImageBlock::MakeImageBlock ( const wxImage &  image,
int  imageType = wxBITMAP_TYPE_PNG,
int  quality = 80 
) [virtual]

bool wxImageBlock::MakeImageBlock ( wxImage &  image,
int  imageType = wxBITMAP_TYPE_PNG,
int  quality = 80 
) [virtual]

bool wxImageBlock::MakeImageBlock ( const wxString &  filename,
wxImage &  image,
int  imageType = wxBITMAP_TYPE_PNG,
int  quality = 80 
) [virtual]

bool wxImageBlock::MakeImageBlock ( const wxString &  filename,
int  imageType,
wxImage &  image,
bool  convertToJPEG = true 
) [virtual]

bool wxImageBlock::Ok (  )  const [inline]

void wxImageBlock::operator= ( const wxImageBlock block  ) 

bool wxImageBlock::Read ( wxInputStream stream,
wxDataInputStream dataStream 
)

bool wxImageBlock::Read ( wxInputStream stream  ) 

unsigned char * wxImageBlock::ReadBlock ( const wxString &  filename,
size_t  size 
) [static]

unsigned char * wxImageBlock::ReadBlock ( wxInputStream stream,
size_t  size 
) [static]

Implementation.

Allocate and read from stream as a block of memory

bool wxImageBlock::ReadHex ( wxInputStream stream,
int  length,
int  imageType 
)

void wxImageBlock::SetData ( unsigned char *  image  )  [inline]

void wxImageBlock::SetDataSize ( size_t  size  )  [inline]

void wxImageBlock::SetImageType ( int  imageType  )  [inline]

bool wxImageBlock::Write ( wxOutputStream stream,
wxDataOutputStream dataStream 
)

bool wxImageBlock::Write ( wxOutputStream stream  ) 

bool wxImageBlock::Write ( const wxString &  filename  ) 

bool wxImageBlock::WriteBlock ( const wxString &  filename,
unsigned char *  block,
size_t  size 
) [static]

bool wxImageBlock::WriteBlock ( wxOutputStream stream,
unsigned char *  block,
size_t  size 
) [static]

bool wxImageBlock::WriteHex ( wxOutputStream stream  ) 


Member Data Documentation

unsigned char* wxImageBlock::m_data [protected]

size_t wxImageBlock::m_dataSize [protected]

int wxImageBlock::m_imageType [protected]


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

Generated on Wed May 6 19:22:09 2009 for AxTk by  doxygen 1.5.8