CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::GImageGIF类 参考
类 BUI::GImageGIF 继承关系图:

Public 成员函数

 GImageGIF ()
virtual ~GImageGIF ()
bool LoadBufferImage (unsigned char *buffer, UINT buf_size) override
int LayerCounts () const
int Delay (int l) const
int GetCurPos () const
int UpdateTime (float t) const
void AddHost (IGIFHost *host)
Public 成员函数 继承自 BUI::GImage
 GImage ()
virtual ~GImage ()
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)
UBYTEBuffer () const
 像素数据内存指针,可以直接访问。访问时需要注意像素格式
SIZE ImageSize (BOOL is_pixel_format=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 is_clear)
 根据大小重新分配内存
PixelFormatType GetPixelFormat () const
 位图的像素格式
void TransformMatrix (Transform2d *mtx, RECT *rc, double angle, double scale_x, double scale_y)
 获取图片输出到指定矩形区域内时的变换矩阵
UBYTERowPtr (int x, int y)
 获得像素点内存指针
void GetClientRectInFrames (RECT *rect, BOOL is_hroz, int current, int frame_counts) const
 获得多帧图片的某一帧,在图像中的坐标
void GetImageDrawInfoInFrames (ImageDrawInfo *info, BOOL is_hroz, int current, int frame_counts) 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 (GImage *source)
void CopyForm (const unsigned char *data, int w, int h, int bpp)
void MakeShaddow (int dx, int dy, int blur_size, const GColor &color)
 根据透明度。生成阴影格式。必须是具有alpha通道图像
void CloneFrom (const GImage *other)
 克隆
void ToGray (GrayConv conv_type=GrayDesaturation, float k1=0, float k2=0, float k3=0)
 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 ()

Protected 成员函数

void OnTimerGif ()

Protected 属性

int m_layer_count
int * m_delays
CTimerTask m_timer_
UINT m_cur_pos
IGIFHost m_head
Protected 属性 继承自 BUI::GImage
BOOL m_is_attach_other
int m_width
int m_height
UINT m_bpp
int m_stride
unsigned char * m_pixels
PixelFormatType m_pixel_format
int m_rgb_order [4]

额外继承的成员函数

静态 Public 成员函数 继承自 BUI::GImage
static BOOL SaveAsJPG (LPCTSTR file_png_path, const unsigned char *data, int w, int h, PixelFormatType fmt, int stride)
Public 属性 继承自 BUI::GImage
unsigned int m_tex_id

构造及析构函数说明

◆ GImageGIF()

BUI::GImageGIF::GImageGIF ( )

◆ ~GImageGIF()

virtual BUI::GImageGIF::~GImageGIF ( )
virtual

成员函数说明

◆ AddHost()

void BUI::GImageGIF::AddHost ( IGIFHost * host)

◆ Delay()

int BUI::GImageGIF::Delay ( int l) const

◆ GetCurPos()

int BUI::GImageGIF::GetCurPos ( ) const

◆ LayerCounts()

int BUI::GImageGIF::LayerCounts ( ) const

◆ LoadBufferImage()

bool BUI::GImageGIF::LoadBufferImage ( unsigned char * buffer,
UINT buf_size )
overridevirtual

重载 BUI::GImage .

◆ OnTimerGif()

void BUI::GImageGIF::OnTimerGif ( )
protected

◆ UpdateTime()

int BUI::GImageGIF::UpdateTime ( float t) const

类成员变量说明

◆ m_cur_pos

UINT BUI::GImageGIF::m_cur_pos
protected

◆ m_delays

int* BUI::GImageGIF::m_delays
protected

◆ m_head

IGIFHost BUI::GImageGIF::m_head
protected

◆ m_layer_count

int BUI::GImageGIF::m_layer_count
protected

◆ m_timer_

CTimerTask BUI::GImageGIF::m_timer_
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有