Home | History | Annotate | Download | only in win32

Lines Matching refs:hDC

103 HBITMAP CFX_WindowsDIB::GetDDBitmap(const CFX_DIBitmap* pBitmap, HDC hDC) {
106 hBitmap = CreateDIBitmap(hDC, (BITMAPINFOHEADER*)info.c_str(), CBM_INIT,
131 HDC hDC = CreateCompatibleDC(NULL);
137 DeleteDC(hDC);
141 int ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(),
147 DeleteDC(hDC);
164 HDC hDC = CreateCompatibleDC(NULL);
170 DeleteDC(hDC);
174 int ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(),
180 DeleteDC(hDC);
183 CFX_DIBitmap* CFX_WindowsDIB::LoadFromDDB(HDC hDC,
187 FX_BOOL bCreatedDC = !hDC;
189 hDC = CreateCompatibleDC(NULL);
194 GetDIBits(hDC, hBitmap, 0, 0, NULL, (BITMAPINFO*)&bmih, DIB_RGB_COLORS);
219 DeleteDC(hDC);
223 ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(),
238 DeleteDC(hDC);
242 ret = GetDIBits(hDC, hBitmap, 0, height, pDIBitmap->GetBuffer(),
260 DeleteDC(hDC);
264 CFX_WindowsDIB::CFX_WindowsDIB(HDC hDC, int width, int height) {
273 m_hBitmap = CreateDIBSection(hDC, (BITMAPINFO*)&bmih, DIB_RGB_COLORS,
275 m_hMemDC = CreateCompatibleDC(hDC);
283 void CFX_WindowsDIB::LoadFromDevice(HDC hDC, int left, int top) {
284 ::BitBlt(m_hMemDC, 0, 0, m_Width, m_Height, hDC, left, top, SRCCOPY);
286 void CFX_WindowsDIB::SetToDevice(HDC hDC, int left, int top) {
287 ::BitBlt(hDC, left, top, m_Width, m_Height, m_hMemDC, 0, 0, SRCCOPY);