CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
Public 成员函数 | |
GImage () | |
virtual | ~GImage () |
virtual bool | LoadBufferImage (unsigned char *buffer, UINT dwSize) |
UBYTE * | Buffer () const |
SIZE | ImageSize (BOOL isPixelFormat=FALSE) const |
int | WidthPixel () const |
int | HeightPixel () const |
void | AttachOtherMemImage (unsigned char *pixel, int w, int h, int stride, PixelFormatType fmt) |
void | AllocImage (int w, int h, PixelFormatType fmt, BOOL clear) |
PixelFormatType | GetPixelFormat () const |
void | GetClientRectInFrames (RECT *rc, BOOL isHroz, int current, int frameCounts) const |
void | TransformMatrix (Transform2d *mtx, RECT *rc, double angle, double scale_x, double scale_y) |
UBYTE * | RowPtr (int x, int y) |
void | GetImageDrawInfoInFrames (ImageDrawInfo *info, BOOL isHroz, int current, int frameCounts) const |
void | GetImageDrawInfo (ImageDrawInfo *info) const |
void | GetImageDrawInfoInArea (ImageDrawInfo *info, int x, int y, int w, int h) const |
int | Stride () const |
int | StrideAbs () const |
UINT | PixelBitCounts () const |
void | HistogramEqualize (GImage *source, int color_chanel, uint8_t *p, int len) |
图像均衡化 | |
void | Destory () |
void | CopyForm (const unsigned char *data, int w, int h, int bpp) |
void | MakeShaddow (int dx, int dy, int blursize, const GColor &color) |
根据透明度。生成阴影格式。必须是具有alpha通道图像 | |
void | CloneFrom (const GImage *other) |
void | ToGray (GrayConv conv_type=GrayDesaturation) |
取GrayConv组合值 | |
void | GetImageChanelIndex (int &ir, int &ig, int &ib, int &ia) |
获得图像颜色通道索引 | |
void | SaveAsImageFile (LPCTSTR file_png_path, LPCTSTR fmt) |
void | RemoveBackColor (uint8_t r, uint8_t g, uint8_t b) |
静态 Public 成员函数 | |
static BOOL | SaveAsJPG (LPCTSTR file_png_path, const unsigned char *data, int w, int h, PixelFormatType fmt, int stride) |
Protected 属性 | |
BOOL | m_isAttachOther |
int | m_iWidth |
int | m_iHeight |
UINT | m_nBpp |
int | m_nStride |
unsigned char * | m_pBuffer |
PixelFormatType | m_pixelformat |
BUI::GImage::GImage | ( | ) |
|
virtual |
void BUI::GImage::AllocImage | ( | int | w, |
int | h, | ||
PixelFormatType | fmt, | ||
BOOL | clear | ||
) |
void BUI::GImage::AttachOtherMemImage | ( | unsigned char * | pixel, |
int | w, | ||
int | h, | ||
int | stride, | ||
PixelFormatType | fmt | ||
) |
UBYTE * BUI::GImage::Buffer | ( | ) | const |
void BUI::GImage::CloneFrom | ( | const GImage * | other | ) |
void BUI::GImage::CopyForm | ( | const unsigned char * | data, |
int | w, | ||
int | h, | ||
int | bpp | ||
) |
void BUI::GImage::Destory | ( | ) |
void BUI::GImage::GetClientRectInFrames | ( | RECT * | rc, |
BOOL | isHroz, | ||
int | current, | ||
int | frameCounts | ||
) | const |
void BUI::GImage::GetImageChanelIndex | ( | int & | ir, |
int & | ig, | ||
int & | ib, | ||
int & | ia | ||
) |
获得图像颜色通道索引
void BUI::GImage::GetImageDrawInfo | ( | ImageDrawInfo * | info | ) | const |
void BUI::GImage::GetImageDrawInfoInArea | ( | ImageDrawInfo * | info, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) | const |
void BUI::GImage::GetImageDrawInfoInFrames | ( | ImageDrawInfo * | info, |
BOOL | isHroz, | ||
int | current, | ||
int | frameCounts | ||
) | const |
PixelFormatType BUI::GImage::GetPixelFormat | ( | ) | const |
int BUI::GImage::HeightPixel | ( | ) | const |
图像均衡化
color_chanel | 颜色通道:-1表示rgb三个通道, 0,1,2 分别代表R,G,B。 |
p | |
len |
|
virtual |
被 BUI::GImageGIF 重载.
void BUI::GImage::MakeShaddow | ( | int | dx, |
int | dy, | ||
int | blursize, | ||
const GColor & | color | ||
) |
根据透明度。生成阴影格式。必须是具有alpha通道图像
UINT BUI::GImage::PixelBitCounts | ( | ) | const |
UBYTE * BUI::GImage::RowPtr | ( | int | x, |
int | y | ||
) |
|
static |
int BUI::GImage::Stride | ( | ) | const |
int BUI::GImage::StrideAbs | ( | ) | const |
void BUI::GImage::ToGray | ( | GrayConv | conv_type = GrayDesaturation | ) |
取GrayConv组合值
void BUI::GImage::TransformMatrix | ( | Transform2d * | mtx, |
RECT * | rc, | ||
double | angle, | ||
double | scale_x, | ||
double | scale_y | ||
) |
int BUI::GImage::WidthPixel | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |