CMGDK r49-rc2
公有成员 | 公有属性 | 保护成员 | 保护属性
hgl::VCLBitmap类参考

#include <VCLBitmap.h>

所有成员的列表。

公有成员

 VCLBitmap ()
virtual ~VCLBitmap ()
bool Create (void *, int, int, ColorType)
 创建图片
bool LoadOtherFormat (const wchar_t *)
 加载非TEX格式图片
bool LoadTexture (TDFNode *)
 从一个TDF节点加载图片
bool LoadTexture (Stream *)
 从一个流加载图片
bool LoadHGP (TDFNode *)
bool LoadHGP (Stream *)
bool Load (const wchar_t *)
 从一个文件加载图片
bool Load (HAC *, const wchar_t *)
 从一个HAC包中的文件加载图片
void Resize (double)
 缩放
void Clear ()
 清除数据
void DrawTo (Graphics::TCanvas *, int, int, int, int, int, int)
 绘制到TCanvas
void DrawTo (Graphics::TCanvas *, int, int)
 绘制到TCanvas

公有属性

Property< ColorType > Color
 颜色类型
Property< intWidth
 图片宽
Property< intHeight
 图片高

保护成员

ColorType GetColor ()
int GetWidth ()
int GetHeight ()
void Join ()

保护属性

Graphics::TBitmap * bmp
VSBasevs
ColorType OrignColor

详细描述

VCL兼容位图,可加载贴图(.TEX)进来,在TCanvas上绘制


构造及析构函数文档

hgl::VCLBitmap::VCLBitmap ( )
hgl::VCLBitmap::~VCLBitmap ( ) [virtual]

成员函数文档

void hgl::VCLBitmap::Clear ( )

清除数据

bool hgl::VCLBitmap::Create ( void *  data,
int  width,
int  height,
ColorType  ct 
)

创建图片

void hgl::VCLBitmap::DrawTo ( Graphics::TCanvas *  to,
int  x,
int  y 
)

绘制到TCanvas

void hgl::VCLBitmap::DrawTo ( Graphics::TCanvas *  to,
int  x,
int  y,
int  l,
int  t,
int  w,
int  h 
)

绘制到TCanvas

ColorType hgl::VCLBitmap::GetColor ( ) [protected]
int hgl::VCLBitmap::GetHeight ( ) [protected]
int hgl::VCLBitmap::GetWidth ( ) [protected]
void hgl::VCLBitmap::Join ( ) [protected]
bool hgl::VCLBitmap::Load ( const wchar_t *  filename)

从一个文件加载图片

bool hgl::VCLBitmap::Load ( HAC hac,
const wchar_t *  filename 
)

从一个HAC包中的文件加载图片

bool hgl::VCLBitmap::LoadHGP ( TDFNode node)
bool hgl::VCLBitmap::LoadHGP ( Stream str)
bool hgl::VCLBitmap::LoadOtherFormat ( const wchar_t *  filename)

加载非TEX格式图片

bool hgl::VCLBitmap::LoadTexture ( Stream str)

从一个流加载图片

bool hgl::VCLBitmap::LoadTexture ( TDFNode node)

从一个TDF节点加载图片

void hgl::VCLBitmap::Resize ( double  scale)

缩放


成员数据文档

Graphics::TBitmap* hgl::VCLBitmap::bmp [protected]

颜色类型

图片高

ColorType hgl::VCLBitmap::OrignColor [protected]
VSBase* hgl::VCLBitmap::vs [protected]

图片宽


该类的文档由以下文件生成:
 全部  名字空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义