YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
图像资源。 更多...
#include <yres.h>
Public 成员函数 | |
Image (ConstBitmapPtr={}, SDst=0, SDst=0) | |
构造:使用指定位图指针、长和宽。 | |
BitmapPtr | GetImagePtr () const ynothrow |
![]() | |
BitmapBuffer ()=default | |
无参数构造:默认实现。 | |
BitmapBuffer (ConstBitmapPtr, SDst, SDst) | |
构造:使用指定位图指针和大小。 | |
BitmapBuffer (const BitmapBuffer &) | |
BitmapBuffer (BitmapBuffer &&) ynothrow | |
转移构造:转移资源。 | |
virtual | ~BitmapBuffer () |
析构:释放资源。 | |
BitmapBuffer & | operator= (const BitmapBuffer &buf) |
BitmapBuffer & | operator= (BitmapBuffer &&buf) ynothrow |
void | SetContent (ConstBitmapPtr, SDst, SDst) |
设置内容。 | |
virtual void | SetSize (SDst, SDst) |
重新设置缓冲区大小。 | |
void | SetSizeSwap () |
交换宽和高;同时清除缓冲区。 | |
virtual void | ClearImage () const |
清除缓冲区。 | |
virtual BitmapBuffer * | Clone () const |
void | Swap (BitmapBuffer &buf) ynothrow |
const Graphics & | GetContext () const ynothrow |
![]() | |
virtual | ~IResource () |
额外继承的成员函数 | |
![]() | |
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 Size & | GetSize () const ynothrow |
SDst | GetWidth () const ynothrow |
SDst | GetHeight () const ynothrow |
size_t | GetSizeOfBuffer () const ynothrow |
取缓冲区占用空间。 | |
BitmapPtr | at (size_t) const ythrow(GeneralEvent |
取指定行首元素指针。 | |
![]() | |
static const Graphics | Invalid |
无效图形接口上下文。 | |
|
explicit |