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

Public 成员函数

 GImage ()
 
virtual ~GImage ()
 
virtual bool LoadBufferImage (unsigned char *buffer, UINT dwSize)
 
UBYTEBuffer () 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)
 
UBYTERowPtr (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
 

构造及析构函数说明

◆ GImage()

BUI::GImage::GImage ( )

◆ ~GImage()

virtual BUI::GImage::~GImage ( )
virtual

成员函数说明

◆ AllocImage()

void BUI::GImage::AllocImage ( int  w,
int  h,
PixelFormatType  fmt,
BOOL  clear 
)

◆ AttachOtherMemImage()

void BUI::GImage::AttachOtherMemImage ( unsigned char *  pixel,
int  w,
int  h,
int  stride,
PixelFormatType  fmt 
)

◆ Buffer()

UBYTE * BUI::GImage::Buffer ( ) const

◆ CloneFrom()

void BUI::GImage::CloneFrom ( const GImage other)

◆ CopyForm()

void BUI::GImage::CopyForm ( const unsigned char *  data,
int  w,
int  h,
int  bpp 
)

◆ Destory()

void BUI::GImage::Destory ( )

◆ GetClientRectInFrames()

void BUI::GImage::GetClientRectInFrames ( RECT rc,
BOOL  isHroz,
int  current,
int  frameCounts 
) const

◆ GetImageChanelIndex()

void BUI::GImage::GetImageChanelIndex ( int &  ir,
int &  ig,
int &  ib,
int &  ia 
)

获得图像颜色通道索引

◆ GetImageDrawInfo()

void BUI::GImage::GetImageDrawInfo ( ImageDrawInfo info) const

◆ GetImageDrawInfoInArea()

void BUI::GImage::GetImageDrawInfoInArea ( ImageDrawInfo info,
int  x,
int  y,
int  w,
int  h 
) const

◆ GetImageDrawInfoInFrames()

void BUI::GImage::GetImageDrawInfoInFrames ( ImageDrawInfo info,
BOOL  isHroz,
int  current,
int  frameCounts 
) const

◆ GetPixelFormat()

PixelFormatType BUI::GImage::GetPixelFormat ( ) const

◆ HeightPixel()

int BUI::GImage::HeightPixel ( ) const

◆ HistogramEqualize()

void BUI::GImage::HistogramEqualize ( GImage source,
int  color_chanel,
uint8_t p,
int  len 
)

图像均衡化

参数
color_chanel颜色通道:-1表示rgb三个通道, 0,1,2 分别代表R,G,B。
p
len

◆ ImageSize()

SIZE BUI::GImage::ImageSize ( BOOL  isPixelFormat = FALSE) const

◆ LoadBufferImage()

virtual bool BUI::GImage::LoadBufferImage ( unsigned char *  buffer,
UINT  dwSize 
)
virtual

BUI::GImageGIF 重载.

◆ MakeShaddow()

void BUI::GImage::MakeShaddow ( int  dx,
int  dy,
int  blursize,
const GColor color 
)

根据透明度。生成阴影格式。必须是具有alpha通道图像

◆ PixelBitCounts()

UINT BUI::GImage::PixelBitCounts ( ) const

◆ RemoveBackColor()

void BUI::GImage::RemoveBackColor ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)

◆ RowPtr()

UBYTE * BUI::GImage::RowPtr ( int  x,
int  y 
)

◆ SaveAsImageFile()

void BUI::GImage::SaveAsImageFile ( LPCTSTR  file_png_path,
LPCTSTR  fmt 
)

◆ SaveAsJPG()

static BOOL BUI::GImage::SaveAsJPG ( LPCTSTR  file_png_path,
const unsigned char *  data,
int  w,
int  h,
PixelFormatType  fmt,
int  stride 
)
static

◆ Stride()

int BUI::GImage::Stride ( ) const

◆ StrideAbs()

int BUI::GImage::StrideAbs ( ) const

◆ ToGray()

void BUI::GImage::ToGray ( GrayConv  conv_type = GrayDesaturation)

GrayConv组合值

◆ TransformMatrix()

void BUI::GImage::TransformMatrix ( Transform2d mtx,
RECT rc,
double  angle,
double  scale_x,
double  scale_y 
)

◆ WidthPixel()

int BUI::GImage::WidthPixel ( ) const

类成员变量说明

◆ m_iHeight

int BUI::GImage::m_iHeight
protected

◆ m_isAttachOther

BOOL BUI::GImage::m_isAttachOther
protected

◆ m_iWidth

int BUI::GImage::m_iWidth
protected

◆ m_nBpp

UINT BUI::GImage::m_nBpp
protected

◆ m_nStride

int BUI::GImage::m_nStride
protected

◆ m_pBuffer

unsigned char* BUI::GImage::m_pBuffer
protected

◆ m_pixelformat

PixelFormatType BUI::GImage::m_pixelformat
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2025 · CBlueStudio 版权所有