Giveda® Embedded Midware  1.2.0
本文档受《版权法》、《版权公约》保护。深圳技达®版权所有
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
GImage类 参考

图片 更多...

#include <gImage.h>

继承自 GPaintDevice .

Public 成员函数

 GImage ()
 构造一个空的图片对象,isNull() 将返回true 更多...
 
 GImage (const int16_t numID)
 使用指定的数字ID去构造图片对象 更多...
 
 GImage (const GImage &src)
 
GImageoperator= (const GImage &r)
 
virtual ~GImage ()
 
int load (const int16_t numID)
 使用指定的数字ID去加载图片 更多...
 
bool isNull () const
 返回本图片对象是否为空 更多...
 
GImage smoothScale (int width, int height)
 缩放到指定的宽和高,返回缩放后的图片对象 更多...
 
const GStringimageID () const
 返回字符串ID 更多...
 
int16_t numID () const
 返回数字ID 更多...
 
const GSizesize ()
 获取paint device的大小 更多...
 
bool isEmpty () const
 
bool isValid () const
 
T_OFFSET width () const
 
T_OFFSET height () const
 
void setWidth (T_OFFSET w)
 
void setHeight (T_OFFSET h)
 
void transpose ()
 
GSize expandedTo (const GSize &) const
 
GSize boundedTo (const GSize &) const
 
T_OFFSETrwidth ()
 
T_OFFSETrheight ()
 
GSizeoperator+= (const GSize &)
 
GSizeoperator-= (const GSize &)
 
GSizeoperator*= (double c)
 
GSizeoperator/= (double c)
 

详细描述

图片

构造及析构函数说明

GImage::GImage ( )

构造一个空的图片对象,isNull() 将返回true

GImage::GImage ( const int16_t  numID)

使用指定的数字ID去构造图片对象

参数
numID...
GImage::GImage ( const GImage src)
virtual GImage::~GImage ( )
virtual

成员函数说明

GSize GSize::boundedTo ( const GSize ) const
inherited
GSize GSize::expandedTo ( const GSize ) const
inherited
T_OFFSET GSize::height ( ) const
inherited
const GString& GImage::imageID ( ) const

返回字符串ID

返回
const GString&
bool GSize::isEmpty ( ) const
inherited
bool GImage::isNull ( ) const

返回本图片对象是否为空

返回
bool
bool GSize::isValid ( ) const
inherited
int GImage::load ( const int16_t  numID)

使用指定的数字ID去加载图片

参数
numID...
返回
int 0成功,非0失败
int16_t GImage::numID ( ) const

返回数字ID

返回
int16_t
GSize& GSize::operator*= ( double  c)
inherited
GSize& GSize::operator+= ( const GSize )
inherited
GSize& GSize::operator-= ( const GSize )
inherited
GSize& GSize::operator/= ( double  c)
inherited
GImage& GImage::operator= ( const GImage r)
T_OFFSET& GSize::rheight ( )
inherited
T_OFFSET& GSize::rwidth ( )
inherited
void GSize::setHeight ( T_OFFSET  h)
inherited
void GSize::setWidth ( T_OFFSET  w)
inherited
const GSize& GPaintDevice::size ( )
inherited

获取paint device的大小

返回
const GSize&
GImage GImage::smoothScale ( int  width,
int  height 
)

缩放到指定的宽和高,返回缩放后的图片对象

参数
width...
height...
返回
GImage
void GSize::transpose ( )
inherited
T_OFFSET GSize::width ( ) const
inherited

该类的文档由以下文件生成: