AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzImage Class Reference

#include <CzImage.h>

Inheritance diagram for CzImage:
IzXomlResource

List of all members.

Public Types

enum  eState { State_Invalid, State_Loading, State_Loaded, State_Uploaded }
enum  eFormat {
  Format_Invalid, Format_RGB332, Format_RGB565, Format_RGB888,
  Format_RGBA4444, Format_RGBA6666, Format_RGBA5551, Format_RGBA8888
}

Public Member Functions

eState getState () const
CzTexture getTexture ()
int getWidth () const
int getHeight () const
CzImagegetCopy ()
void setFilter (bool enable)
bool isFilter () const
bool isFilterSet () const
void setToFormat (eFormat format)
eFormat getFormat () const
 CzImage ()
virtual ~CzImage ()
bool Init (void *memory_file, int memory_file_size)
void Init (const char *filename)
bool Init (void *pixels, int width, int height, int pitch, eFormat format, bool modifiable)
void Release ()
bool Load (bool blocking=true)
bool Reload (const char *filename, bool blocking=true)
void ChangePixels (void *data, CzImage::eFormat format)
CzTexture ConvertToFormat (CzImage &source, CzImage::eFormat format)
void SavePng (const char *filename)
void SaveJpg (const char *filename, int quality=100)
int LoadFromXoml (IzXomlResource *parebt, bool load_children, CzXmlNode *node)
void FinishLoad ()

Protected Member Functions

bool DecompressJPEG (char *jpeg_data, int jpeg_data_size)

Protected Attributes

CzTexture Texture
CzTextureinfo TextureInfo
eState State
bool Filter
bool FilterSet
eFormat ToFormat
bool ToFormatSet
CzFileFile

Member Enumeration Documentation

Enumerator:
Format_Invalid 
Format_RGB332 
Format_RGB565 
Format_RGB888 
Format_RGBA4444 
Format_RGBA6666 
Format_RGBA5551 
Format_RGBA8888 
Enumerator:
State_Invalid 
State_Loading 
State_Loaded 
State_Uploaded 

Constructor & Destructor Documentation

CzImage::CzImage ( ) [inline]
CzImage::~CzImage ( ) [virtual]

Member Function Documentation

void CzImage::ChangePixels ( void *  data,
CzImage::eFormat  format 
)
bool CzImage::DecompressJPEG ( char *  jpeg_data,
int  jpeg_data_size 
) [protected]
int CzImage::getHeight ( ) const
eState CzImage::getState ( ) const [inline]
int CzImage::getWidth ( ) const
bool CzImage::Init ( void *  memory_file,
int  memory_file_size 
)
void CzImage::Init ( const char *  filename)
bool CzImage::Init ( void *  pixels,
int  width,
int  height,
int  pitch,
eFormat  format,
bool  modifiable 
)
bool CzImage::isFilter ( ) const
bool CzImage::isFilterSet ( ) const [inline]
bool CzImage::Load ( bool  blocking = true)
int CzImage::LoadFromXoml ( IzXomlResource parebt,
bool  load_children,
CzXmlNode node 
) [virtual]

Implements IzXomlResource.

void CzImage::Release ( )
bool CzImage::Reload ( const char *  filename,
bool  blocking = true 
)
void CzImage::SaveJpg ( const char *  filename,
int  quality = 100 
)
void CzImage::SavePng ( const char *  filename)
void CzImage::setFilter ( bool  enable)
void CzImage::setToFormat ( eFormat  format) [inline]

Member Data Documentation

CzFile* CzImage::File [protected]
bool CzImage::Filter [protected]
bool CzImage::FilterSet [protected]
eState CzImage::State [protected]
bool CzImage::ToFormatSet [protected]

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