#include <MemoryDC.h>
公有成员 | |
| void | BitBlt (HDC hdcDst, int xDst, int yDst, int wDst, int hDst, int xSrc, int ySrc, DWORD dwRop) |
| BitBlt the internal DC | |
| void | Create (int nWidth, int nHeight, HDC hdcCompatible=0) |
| Create a memory dc with specified size | |
| HDC | GetDC () |
| get the internal DC. | |
| int | GetHeight () |
| get the internal bitmap's height | |
| int | GetWidth () |
| get the internal bitmap's width | |
| MemoryDC (void) | |
| void | Unload () |
| Reset & Clean the resources of the object | |
| ~MemoryDC (void) | |
保护属性 | |
| HBITMAP | m_hBmp |
| HGDIOBJ | m_hBmpOld |
| HDC | m_hDC |
| int | m_nHeight |
| int | m_nWidth |
| 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 | |||
| ) |
BitBlt the internal DC
| void MemoryDC::Create | ( | int | nWidth, | |
| int | nHeight, | |||
| HDC | hdcCompatible = 0 | |||
| ) |
Create a memory dc with specified size
| nWidth | width of the internal bitmap. | |
| nHeight | height of the internal bitmap. | |
| hdcCompatible | 0:compatible with the current desktop dc. |
| HDC MemoryDC::GetDC | ( | ) |
get the internal DC.
| int MemoryDC::GetHeight | ( | ) |
get the internal bitmap's height
| int MemoryDC::GetWidth | ( | ) |
get the internal bitmap's width
| void MemoryDC::Unload | ( | ) |
Reset & Clean the resources of the object
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] |