#include <ivf/IvfImage.h>
Inheritance diagram for CIvfImage:

Public Member Functions | |
| CIvfImage () | |
| virtual | ~CIvfImage () |
| IvfClassInfo ("CIvfImage", CIvfBase) | |
| void | clear () |
| bool | valid (int x, int y) |
| void | setPixel (int x, int y, GLubyte red, GLubyte green, GLubyte blue) |
| void | setValue (int x, int y, int channel, GLubyte value) |
| void | setPixelAlpha (int x, int y, GLubyte alpha) |
| void | getPixel (int x, int y, GLubyte &red, GLubyte &green, GLubyte &blue) |
| GLubyte | getPixelAlpha (int x, int y) |
| void | fillColor (GLubyte red, GLubyte green, GLubyte blue) |
| void | fillColorAlpha (GLubyte alpha) |
| void | fillRect (int x1, int y1, int x2, int y2, GLubyte red, GLubyte green, GLubyte blue) |
| void | fillRectAlpha (int x1, int y1, int x2, int y2, GLubyte alpha) |
| void | drawFrame (int x1, int y1, int x2, int y2, GLubyte red, GLubyte green, GLubyte blue) |
| void | drawFrameAlpha (int x1, int y1, int x2, int y2, GLubyte alpha) |
| void | replaceColor (GLubyte srcRed, GLubyte srcGreen, GLubyte srcBlue, GLubyte tgtRed, GLubyte tgtGreen, GLubyte tgtBlue) |
| void | createAlphaMask (int treshold, int component, int over, int under) |
| void | createAlphaFromColor () |
| void | setChannels (int channels) |
| int | getChannels () |
| void | setInternalFormat (GLint format) |
| GLint | getInternalFormat () |
| void | setSize (int width, int height) |
| int | getHeight () |
| int | getWidth () |
| double | getRatio () |
| void | setImageMap (void *image) |
| GLubyte * | getImageMap () |
| GLint | getFormat () |
The CIvfImage class implements a OpenGL compatible 2D image. The class is used as a base class for the image loaders in the ivfimage library.
Definition at line 40 of file IvfImage.h.
|
|
CIvfImage constructor |
|
|
CIvfImage destructor |
|
|
Clear image Fills entire image with black(=0) and if alpha channel present it is filled with 255 |
|
|
Assigns alpha channel values from mean color values. |
|
||||||||||||||||||||
|
Creates an alpha mask using a color component in the image
|
|
||||||||||||||||||||||||||||||||
|
Draw a frame with specified color |
|
||||||||||||||||||||||||
|
Draw a frame width specified alpha value |
|
||||||||||||||||
|
Fill image with specified color |
|
|
Fill image alpha channel with value |
|
||||||||||||||||||||||||||||||||
|
Fill a rectangular area of image with color |
|
||||||||||||||||||||||||
|
Fill a rectangular area of image width specified alpha value |
|
|
Returns the number of channels in the image |
|
|
Returns the image format. |
|
|
Return height of image |
|
|
Return pointer to image map This pointer can be used with OpenGL functions |
|
|
Returns the internal image format for use with OpenGL |
|
||||||||||||||||||||||||
|
Get pixel values |
|
||||||||||||
|
Return pixel alpha values |
|
|
Return image ratio |
|
|
Return width of image |
|
||||||||||||||||||||||||||||
|
Replace a color in the image with another
|
|
|
Set number of channels in image If image is allocated calling setChannels() will deallocate it. setChannels() should be called before setSize(), to avoid unnesseccary allocation. |
|
|
Sets the image map used by the image class |
|
|
Sets the internal format of the image This method should not be neccessary to call because the internal format is automatically set. |
|
||||||||||||||||||||||||
|
Set an image pixel |
|
||||||||||||||||
|
Set alpha value of image pixel |
|
||||||||||||
|
Sets the image size If channels are not set a 3 channel image will be created. |
|
||||||||||||||||||||
|
Set an image pixel by specifying channel and value |
|
||||||||||||
|
Validate image coordinate
|
1.4.6-NO