ICELib
1
|
iceBitmap interface Simple utility class for passing around bitmap data Opaque structure. More...
Public Member Functions | |
Reference Counting | |
void | iceBitmapAddReference (iceBitmap *pBitmap) |
Increase the refcount on the iceBitmap. | |
void | iceBitmapRelease (iceBitmap *pBitmap) |
Decrease the refcount on the iceBitmap Use this when you have finished using the iceBitmap interface You should set the pointer to NULL afterwards. | |
Construction | |
iceBitmap * | iceBitmapCreate () |
Create an empty bitmap object from file. | |
iceBitmap * | iceBitmapCreateFromFile (const char *filename) |
Setup a bitmap object from file. | |
iceBitmap * | iceBitmapCreateFromFileEx (const char *filename, PixelFormatType targetFormat) |
Setup a bitmap object from file. | |
iceBitmap * | iceBitmapCreateFromMemory (const unsigned char *bitmapData, unsigned long dataLength) |
Setup a bitmap object from file. | |
iceBitmap * | iceBitmapCreateFromMemoryEx (const unsigned char *bitmapData, unsigned long dataLength, PixelFormatType targetFormat) |
Setup a bitmap object from file. | |
iceBitmap * | iceBitmapCreateFromMemoryDirect (unsigned long width, unsigned long height, unsigned long stride, PixelFormatType pft, const unsigned char *data) |
Setup a bitmap object from file. | |
Copying | |
iceBitmap * | iceBitmapClone (const iceBitmap *pBitmap) |
Create a new bitmap object from an existing one. | |
IceCoreResult | iceBitmapCopy (iceBitmap *dst, const iceBitmap *src) |
Copy bitmap data from one bitmap to another. | |
Saving | |
IceCoreResult | iceBitmapSave (const iceBitmap *pBitmap, const char *filename, ImageFileType fileType) |
Setup a bitmap object from file. | |
IceCoreResult | iceBitmapSaveToMemory (const iceBitmap *pBitmap, unsigned char *buffer, unsigned long *bufferSize, ImageFileType fileType) |
Setup a bitmap object from file. | |
Properties | |
void | iceBitmapGetDimensions (const iceBitmap *pBitmap, unsigned long *widthPixels, unsigned long *heightPixels) |
Setup a bitmap object from file. | |
unsigned long | iceBitmapGetHeight (const iceBitmap *pBitmap) |
Setup a bitmap object from file. | |
unsigned long | iceBitmapGetWidth (const iceBitmap *pBitmap) |
Setup a bitmap object from file. | |
unsigned long | iceBitmapGetStride (const iceBitmap *pBitmap) |
Setup a bitmap object from file. | |
unsigned long | iceBitmapGetBitmapFlags (const iceBitmap *pBitmap) |
Setup a bitmap object from file. | |
PixelFormatType | iceBitmapGetPixelFormat (const iceBitmap *pBitmap) |
Setup a bitmap object from file. | |
IceCoreResult | iceBitmapChangePixelFormat (iceBitmap *pBitmap, PixelFormatType pixelType) |
Setup a bitmap object from file. |
iceBitmap interface Simple utility class for passing around bitmap data Opaque structure.