|
| | GImageGIF () |
| |
| virtual | ~GImageGIF () |
| |
| bool | LoadBufferImage (unsigned char *buffer, UINT dwSize) override |
| |
| int | LayerCounts () const |
| |
| int | Delay (int l) const |
| |
| int | GetCurPos () const |
| |
| int | UpdateTime (float t) const |
| |
| void | AddHost (IGIFHost *host) |
| |
| | GImage () |
| |
| virtual | ~GImage () |
| |
| virtual bool | LoadBufferImage (unsigned char *buffer, UINT dwSize) |
| |
| void | GetPixel (int x, int y, uint32_t &r, uint32_t &g, uint32_t &b, uint32_t &a) const |
| | 获得像素点颜色
|
| |
| void | SetPixel (int x, int y, uint32_t r, uint32_t g, uint32_t b, uint32_t a) |
| | 设置像素点颜色
|
| |
| void | Filter (GImage *image_src, std::function< void(int x, int y, GImage *dst, GImage *src1)> call_back) |
| |
| void | FilterDouble (GImage *image_src1, GImage *image_src2, std::function< void(int x, int y, GImage *dst, GImage *src1, GImage *src2)> call_back) |
| |
| 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 | TransformMatrix (Transform2d *mtx, RECT *rc, double angle, double scale_x, double scale_y) |
| | 获取图片输出到指定矩形区域内时的变换矩阵
|
| |
| UBYTE * | RowPtr (int x, int y) |
| | 获得像素点内存指针
|
| |
| void | GetClientRectInFrames (RECT *rc, BOOL isHroz, int current, int frameCounts) const |
| | 获得多帧图片的某一帧,在图像中的坐标
|
| |
| 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 |
| | 图片一水平行,所占的字节数。当Stride() < 0 时,表示第一行,存储在内存中的高地址。
|
| |
| int | StrideAbs () const |
| | 图片一水平行,所占的字节数的绝对值
|
| |
| UINT | PixelBitCounts () const |
| | 单个像素点占的比特数
|
| |
| void | Gamma (float gamma, UINT channel, double(*f)(double)=NULL) |
| |
| 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) |
| | 清除指定背景颜色
|
| |
| unsigned int | GetTexID () |
| |