内存DC
#include <MemoryDC.h>
公有成员 | |
void | BitBlt (HDC hdcDst, int xDst, int yDst, int wDst, int hDst, int xSrc, int ySrc, DWORD dwRop) |
对内置DC进行BitBlt操作 | |
void | Create (HBITMAP bmpSrc, HDC hdcCompatible=0, bool deleteSrcOnDestruct=TRUE) |
创建一个指定大小的内存DC | |
void | Create (int nWidth, int nHeight, HDC hdcCompatible=0) |
创建一个指定大小的内存DC | |
HBITMAP | DetachBitmap () |
Detach the internal bitmap from internal DC. | |
HBITMAP | GetBitmap () |
获得内部位图 | |
HDC | GetDC () |
获得内置DC | |
int | GetHeight () |
获得内置位图的高 | |
int | GetWidth () |
获得内置位图的宽 | |
MemoryDC (void) | |
void | Unload () |
清除并重置控件内的系统资源 | |
~MemoryDC (void) | |
保护属性 | |
BOOL | m_createWidthSrcBmp |
BOOL | m_deleteSrcOnDestruct |
HBITMAP | m_hBmp |
HGDIOBJ | m_hBmpOld |
HDC | m_hDC |
int | m_nHeight |
int | m_nWidth |
内存DC
MemoryDC::MemoryDC | ( | void | ) |
MemoryDC::~MemoryDC | ( | void | ) |
void MemoryDC::BitBlt | ( | HDC | hdcDst, | |
int | xDst, | |||
int | yDst, | |||
int | wDst, | |||
int | hDst, | |||
int | xSrc, | |||
int | ySrc, | |||
DWORD | dwRop | |||
) |
对内置DC进行BitBlt操作
void MemoryDC::Create | ( | HBITMAP | bmpSrc, | |
HDC | hdcCompatible = 0 , |
|||
bool | deleteSrcOnDestruct = TRUE | |||
) |
创建一个指定大小的内存DC
bmpSrc | 源位图. 对象析构时会否删除这个句柄的位图,由另一参数deleteSrcOnDestruct决定。 | |
hdcCompatible | 创建与此参数兼容的DC。0表示与屏幕DC兼容. | |
deleteSrcOnDestruct | 指定对象析构时是否删除源位图(bmpSrc), 默认为TRUE. |
void MemoryDC::Create | ( | int | nWidth, | |
int | nHeight, | |||
HDC | hdcCompatible = 0 | |||
) |
创建一个指定大小的内存DC
nWidth | 内置位图的宽. | |
nHeight | 内置位图的高. | |
hdcCompatible | 创建与此参数兼容的DC。0表示与屏幕DC兼容. |
HBITMAP MemoryDC::DetachBitmap | ( | ) |
Detach the internal bitmap from internal DC.
HBITMAP MemoryDC::GetBitmap | ( | ) |
获得内部位图
HDC MemoryDC::GetDC | ( | ) |
获得内置DC
int MemoryDC::GetHeight | ( | ) |
获得内置位图的高
int MemoryDC::GetWidth | ( | ) |
获得内置位图的宽
void MemoryDC::Unload | ( | ) |
清除并重置控件内的系统资源
BOOL MemoryDC::m_createWidthSrcBmp [protected] |
BOOL MemoryDC::m_deleteSrcOnDestruct [protected] |
HBITMAP MemoryDC::m_hBmp [protected] |
HGDIOBJ MemoryDC::m_hBmpOld [protected] |
HDC MemoryDC::m_hDC [protected] |
int MemoryDC::m_nHeight [protected] |
int MemoryDC::m_nWidth [protected] |