9 CONST BITMAPINFO
*BitmapInfo
,
15 PBITMAPINFO pConvertedInfo
;
16 UINT ConvertedInfoSize
;
17 HBITMAP hBitmap
= NULL
;
19 pConvertedInfo
= ConvertBitmapInfo(BitmapInfo
, Usage
,
20 &ConvertedInfoSize
, FALSE
);
23 hBitmap
= NtGdiCreateDIBSection(hDC
, hSection
, dwOffset
, pConvertedInfo
, Usage
, 0, 0, 0, Bits
);
24 if (BitmapInfo
!= pConvertedInfo
)
25 RtlFreeHeap(RtlGetProcessHeap(), 0, pConvertedInfo
);
36 BitBlt(HDC hdcDest
, /* handle to destination DC */
37 int nXOriginDest
, /* x-coord of destination upper-left corner */
38 int nYOriginDest
, /* y-coord of destination upper-left corner */
39 int nWidthDest
, /* width of destination rectangle */
40 int nHeightDest
, /* height of destination rectangle */
41 HDC hdcSrc
, /* handle to source DC */
42 int nXSrc
, /* x-coordinate of source upper-left corner */
43 int nYSrc
, /* y-coordinate of source upper-left corner */
44 DWORD dwRop
) /* raster operation code */
46 return NtGdiBitBlt(hdcDest
,
64 HDC hdcDest
, /* handle to destination DC */
65 int nXOriginDest
, /* x-coord of destination upper-left corner */
66 int nYOriginDest
, /* y-coord of destination upper-left corner */
67 int nWidthDest
, /* width of destination rectangle */
68 int nHeightDest
, /* height of destination rectangle */
69 HDC hdcSrc
, /* handle to source DC */
70 int nXOriginSrc
, /* x-coord of source upper-left corner */
71 int nYOriginSrc
, /* y-coord of source upper-left corner */
72 int nWidthSrc
, /* width of source rectangle */
73 int nHeightSrc
, /* height of source rectangle */
74 DWORD dwRop
) /* raster operation code */
77 if ((nWidthDest
!= nWidthSrc
) || (nHeightDest
!= nHeightSrc
))
79 return NtGdiStretchBlt(hdcDest
, nXOriginDest
, nYOriginDest
, nWidthDest
,
80 nHeightDest
, hdcSrc
, nXOriginSrc
, nYOriginSrc
,
81 nWidthSrc
, nHeightSrc
, dwRop
, 0);
84 return NtGdiBitBlt(hdcDest
, nXOriginDest
, nYOriginDest
, nWidthDest
,
85 nHeightDest
, hdcSrc
, nXOriginSrc
, nYOriginSrc
, dwRop
, 0, 0);