YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Drawing::Image类 参考

图像资源。 更多...

#include <yres.h>

类 YSLib::Drawing::Image 继承关系图:
YSLib::Drawing::Image 的协作图:

Public 成员函数

 Image (ConstBitmapPtr={}, SDst=0, SDst=0)
 构造:使用指定位图指针、长和宽。
 
BitmapPtr GetImagePtr () const ynothrow
 
- Public 成员函数 继承自 YSLib::Drawing::BitmapBuffer
 BitmapBuffer ()=default
 无参数构造:默认实现。
 
 BitmapBuffer (ConstBitmapPtr, SDst, SDst)
 构造:使用指定位图指针和大小。
 
 BitmapBuffer (const BitmapBuffer &)
 
 BitmapBuffer (BitmapBuffer &&) ynothrow
 转移构造:转移资源。
 
virtual ~BitmapBuffer ()
 析构:释放资源。
 
BitmapBufferoperator= (const BitmapBuffer &buf)
 
BitmapBufferoperator= (BitmapBuffer &&buf) ynothrow
 
void SetContent (ConstBitmapPtr, SDst, SDst)
 设置内容。
 
virtual void SetSize (SDst, SDst)
 重新设置缓冲区大小。
 
void SetSizeSwap ()
 交换宽和高;同时清除缓冲区。
 
virtual void ClearImage () const
 清除缓冲区。
 
virtual BitmapBufferClone () const
 
void Swap (BitmapBuffer &buf) ynothrow
 
const GraphicsGetContext () const ynothrow
 
- Public 成员函数 继承自 YSLib::IResource
virtual ~IResource ()
 

额外继承的成员函数

- Protected 成员函数 继承自 YSLib::Drawing::Graphics
yconstfn Graphics (BitmapPtr b={}, const Size &s={}) ynothrow
 构造:使用指定位图指针和大小。
 
yconstfn Graphics (const Graphics &g) ynothrow
 复制构造:浅复制。
 
 ~Graphics ()
 析构:空实现。
 
bool operator! () const ynothrow
 判断无效性。
 
BitmapPtr operator[] (size_t) const ynothrow
 取指定行首元素指针。
 
 operator bool () const ynothrow
 判断有效性。
 
BitmapPtr GetBufferPtr () const ynothrow
 
const SizeGetSize () const ynothrow
 
SDst GetWidth () const ynothrow
 
SDst GetHeight () const ynothrow
 
size_t GetSizeOfBuffer () const ynothrow
 取缓冲区占用空间。
 
BitmapPtr at (size_t) const ythrow(GeneralEvent
 取指定行首元素指针。
 
- 静态 Protected 属性 继承自 YSLib::Drawing::Graphics
static const Graphics Invalid
 无效图形接口上下文。
 

详细描述

图像资源。

自从
build 205

在文件 yres.h52 行定义.

构造及析构函数说明

YSL_BEGIN Image::Image ( ConstBitmapPtr  s = {},
SDst  w = 0,
SDst  h = 0 
)
explicit

构造:使用指定位图指针、长和宽。

在文件 yres.cpp35 行定义.

成员函数说明

BitmapPtr YSLib::Drawing::Image::GetImagePtr ( ) const
inline

在文件 yres.h62 行定义.


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