Blender V2.61 - r43446
|
class for image buffer More...
#include <ImageBuff.h>
Public Member Functions | |
ImageBuff (void) | |
constructor | |
virtual | ~ImageBuff (void) |
destructor | |
void | load (unsigned char *img, short width, short height) |
load image from buffer | |
void | clear (short width, short height, unsigned char color) |
clear image with color set on RGB channels and 0xFF on alpha channel | |
void | plot (unsigned char *img, short width, short height, short x, short y, short mode) |
plot image from extern RGBA buffer to image at position x,y using one of IMB_BlendMode | |
void | plot (ImageBuff *img, short x, short y, short mode) |
plot image from other ImageBuf to image at position x,y using one of IMB_BlendMode | |
virtual void | refresh (void) |
refresh image - do nothing |
class for image buffer
Definition at line 38 of file ImageBuff.h.
ImageBuff::ImageBuff | ( | void | ) | [inline] |
constructor
Definition at line 44 of file ImageBuff.h.
ImageBuff::~ImageBuff | ( | void | ) | [virtual] |
void ImageBuff::clear | ( | short | width, |
short | height, | ||
unsigned char | color | ||
) |
clear image with color set on RGB channels and 0xFF on alpha channel
Definition at line 116 of file ImageBuff.cpp.
References IMB_freeImBuf(), ImageBase::init(), ImageBase::m_avail, ImageBase::m_image, ImageBase::m_size, NULL, p, and size().
Referenced by ImageBuff_init().
void ImageBuff::load | ( | unsigned char * | img, |
short | width, | ||
short | height | ||
) |
load image from buffer
Definition at line 93 of file ImageBuff.cpp.
References ImageBase::convImage(), IMB_freeImBuf(), ImageBase::init(), ImageBase::m_avail, PyFilter::m_filter, ImageBase::m_pyfilter, and NULL.
Referenced by load().
void ImageBuff::plot | ( | ImageBuff * | img, |
short | x, | ||
short | y, | ||
short | mode | ||
) |
plot image from other ImageBuf to image at position x,y using one of IMB_BlendMode
Definition at line 169 of file ImageBuff.cpp.
References IMB_allocImBuf(), IMB_rectblend(), ImageBase::m_image, ImageBase::m_size, NULL, ImBuf::rect, ImBuf::x, and ImBuf::y.
void ImageBuff::plot | ( | unsigned char * | img, |
short | width, | ||
short | height, | ||
short | x, | ||
short | y, | ||
short | mode | ||
) |
plot image from extern RGBA buffer to image at position x,y using one of IMB_BlendMode
Definition at line 145 of file ImageBuff.cpp.
References IMB_allocImBuf(), IMB_freeImBuf(), IMB_rectblend(), ImageBase::m_image, ImageBase::m_size, NULL, and ImBuf::rect.
Referenced by plot().
virtual void ImageBuff::refresh | ( | void | ) | [inline, virtual] |