0.44.0
|
#include <iPixmap.h>
Public Member Functions | |
~iPixmap () | |
uint32 | getWidth () const |
uint32 | getHeight () const |
uint32 | getBytesPerPixel () const |
iColorFormat | getColorFormat () const |
void | setData (uint8 *data) |
uint8 * | getData () const |
uint32 | getPixel (uint32 x, uint32 y) const |
void | setPixel (uint32 x, uint32 y, uint32 color) |
void | getPixel (float64 x, float64 y, iaColor4f &color) const |
void | getPixelBiLinear (float64 x, float64 y, iaColor4f &color) const |
void | getPixel (float64 x, float64 y, iaColor3f &color) const |
void | getPixel (float64 x, float64 y, iaColor4c &color) const |
void | getPixel (float64 x, float64 y, iaColor3c &color) const |
uint8 | getPixel (uint32 x, uint32 y, uint8 colorChannel) const |
void | setPixel (uint32 x, uint32 y, uint8 colorChannel, uint8 value) |
void | setPixelRGB (uint32 x, uint32 y, uint8 r, uint8 g, uint8 b) |
void | setPixelRGBA (uint32 x, uint32 y, uint8 r, uint8 g, uint8 b, uint8 a) |
Static Public Member Functions | |
static iPixmapPtr | createPixmap (uint32 width, uint32 height, iColorFormat colorFormat) |
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 iaColor3f
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 |
same as getPixel but returns type iaColor4f
x | x coordinate | |
x | y coordinate | |
[out] | color | the returned color |
x | x coordinate |
x | y coordinate |
x | x coordinate |
x | y coordinate |
colorChannel | the chosen color channel |
same as getPixel but uses bilinear filter to calculate returned color
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 |
void igor::iPixmap::setData | ( | uint8 * | data | ) |
sets pixmap data
data |
sets pixel value at given position
x | x coordinate |
x | y coordinate |
color | the color to set |
sets color channel at given position
x | x coordinate |
x | y coordinate |
colorChannel | the chosen color channel |
value | the new color channel value |
sets pixel color at given position
x | x coordinate |
x | y coordinate |
r | red color channel |
g | green color channel |
b | blur color channel |
sets pixel color at given position
x | x coordinate |
x | y coordinate |
r | red color channel |
g | green color channel |
b | blur color channel |
a | alpha color channel |