|
corona
1.0.2
|
#include <corona.h>


Public Member Functions | |
| virtual int COR_CALL | getWidth ()=0 |
| virtual int COR_CALL | getHeight ()=0 |
| virtual PixelFormat COR_CALL | getFormat ()=0 |
| virtual void *COR_CALL | getPixels ()=0 |
| virtual void *COR_CALL | getPalette ()=0 |
| virtual int COR_CALL | getPaletteSize ()=0 |
| virtual PixelFormat COR_CALL | getPaletteFormat ()=0 |
An image object represents a rectangular collections of pixels. They have a width, a height, and a pixel format. Images cannot be resized.
| virtual int COR_CALL corona::Image::getWidth | ( | ) | [pure virtual] |
| virtual int COR_CALL corona::Image::getHeight | ( | ) | [pure virtual] |
| virtual PixelFormat COR_CALL corona::Image::getFormat | ( | ) | [pure virtual] |
| virtual void* COR_CALL corona::Image::getPixels | ( | ) | [pure virtual] |
Get pixel buffer. The pixels are packed in the format defined by the image's pixel format.
Implemented in TestDeletionImage, and corona::SimpleImage.
| virtual void* COR_CALL corona::Image::getPalette | ( | ) | [pure virtual] |
Get the palette. Pixels are packed in the format defined by getPaletteFormat().
Implemented in TestDeletionImage, and corona::SimpleImage.
| virtual int COR_CALL corona::Image::getPaletteSize | ( | ) | [pure virtual] |
Get the number of entries in the palette.
Implemented in TestDeletionImage, and corona::SimpleImage.
| virtual PixelFormat COR_CALL corona::Image::getPaletteFormat | ( | ) | [pure virtual] |
Get the format of the colors in the palette.
Implemented in TestDeletionImage, and corona::SimpleImage.
1.7.6.1