|
0.46.0
|
#include <iPixmap.h>
Public Member Functions | |
| ~iPixmap () | |
| uint32 | getWidth () const |
| uint32 | getHeight () const |
| uint32 | getBytesPerPixel () const |
| iColorFormat | getColorFormat () const |
| uint8 * | getData () const |
| const iaColor4c | getPixelRGBA (float64 x, float64 y) const |
| const iaColor3c | getPixelRGB (float64 x, float64 y) const |
| void | setPixel (float64 x, float64 y, const iaColor4c &color) |
| void | setPixel (float64 x, float64 y, const iaColor3c &color) |
Static Public Member Functions | |
| static iPixmapPtr | createPixmap (uint32 width, uint32 height, iColorFormat colorFormat, uint8 *data=nullptr) |
| static iPixmapPtr | loadPixmap (const iaString &filename) |
pixmap is an editable texture
in order to use it for rendering one has to transform it in to a iTexture
| igor::iPixmap::~iPixmap | ( | ) |
releases resources
|
static |
creates new pixmap with given parameters
| width | width of pixmap in pixel |
| height | height of pixmap in pixel |
| colorFormat | the color format of the pixmap |
| uint32 igor::iPixmap::getBytesPerPixel | ( | ) | const |
| iColorFormat igor::iPixmap::getColorFormat | ( | ) | const |
| uint8 * igor::iPixmap::getData | ( | ) | const |
| uint32 igor::iPixmap::getHeight | ( | ) | const |
same as getPixel but returns type iaColor3c
| x | x coordinate | |
| x | y coordinate | |
| [out] | color | the returned color |
same as getPixel but returns type iaColor4c
| x | x coordinate | |
| x | y coordinate | |
| [out] | color | the returned color |
| uint32 igor::iPixmap::getWidth | ( | ) | const |
|
static |
loads pixmap from file
| filename | the file to load |
same as setPixel but returns type iaColor3c
| x | x coordinate | |
| x | y coordinate | |
| [out] | color | the returned color |
same as setPixel but returns type iaColor4c
| x | x coordinate | |
| x | y coordinate | |
| [out] | color | the returned color |