5 #undef WIN32_LEAN_AND_MEAN
8 #include <win32k/kapi.h>
26 return NtGdiBitBlt(hDCDest, XDest, YDest, Width, Height, hDCSrc, XSrc, YSrc, ROP);
35 CreateBitmap(INT Width,
41 return NtGdiCreateBitmap(Width, Height, Planes, BitsPerPel, Bits);
50 CreateBitmapIndirect(CONST BITMAP *BM)
52 return NtGdiCreateBitmapIndirect(BM);
61 CreateCompatibleBitmap(HDC hDC,
65 return NtGdiCreateCompatibleBitmap(hDC, Width, Height);
74 CreateDiscardableBitmap(HDC hDC,
78 return NtGdiCreateDiscardableBitmap(hDC, Width, Height);
87 CreateDIBitmap(HDC hDC,
88 CONST BITMAPINFOHEADER *bmih,
91 CONST BITMAPINFO *bmi,
94 return NtGdiCreateDIBitmap(hDC, bmih, Init, bInit, bmi, Usage);
103 GetBitmapBits(HBITMAP hBitmap,
107 return NtGdiGetBitmapBits(hBitmap, Count, Bits);
116 GetBitmapDimensionEx(HBITMAP hBitmap,
119 return NtGdiGetBitmapDimensionEx(hBitmap, Dimension);
136 return NtGdiGetDIBits(hDC, hBitmap, StartScan, ScanLines, Bits, bi, Usage);
158 return NtGdiMaskBlt(hDCDest, XDest, YDest, Width, Height, hDCSrc, XSrc, YSrc, hMaskBitmap, xMask, yMask, ROP);
178 return NtGdiPlgBlt(hDCDest, Point, hDCSrc, XSrc, YSrc, Width, Height, hMaskBitmap, xMask, yMask);
187 SetBitmapBits(HBITMAP hBitmap,
191 return NtGdiSetBitmapBits(hBitmap, Bytes, Bits);
205 CONST BITMAPINFO *bmi,
208 return NtGdiSetDIBits(hDC, hBitmap, StartScan, ScanLines, Bits, bmi, ColorUse);
217 SetDIBitsToDevice(HDC hDC,
227 CONST BITMAPINFO *bmi,
230 return NtGdiSetDIBitsToDevice(hDC, XDest, YDest, Width, Height, XSrc, YSrc, StartScan, ScanLines,
231 Bits, bmi, ColorUse);
241 HDC hdcDest, // handle to destination DC
242 int nXOriginDest, // x-coord of destination upper-left corner
243 int nYOriginDest, // y-coord of destination upper-left corner
244 int nWidthDest, // width of destination rectangle
245 int nHeightDest, // height of destination rectangle
246 HDC hdcSrc, // handle to source DC
247 int nXOriginSrc, // x-coord of source upper-left corner
248 int nYOriginSrc, // y-coord of source upper-left corner
249 int nWidthSrc, // width of source rectangle
250 int nHeightSrc, // height of source rectangle
251 DWORD dwRop // raster operation code
254 //SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
255 if ( (nWidthDest==nWidthSrc) && (nHeightDest==nHeightSrc) )
257 return BitBlt(hdcDest,
258 nXOriginDest, // x-coord of destination upper-left corner
259 nYOriginDest, // y-coord of destination upper-left corner
260 nWidthDest, // width of destination rectangle
261 nHeightDest, // height of destination rectangle
262 hdcSrc, // handle to source DC
263 nXOriginSrc, // x-coordinate of source upper-left corner
264 nYOriginSrc, // y-coordinate of source upper-left corner
265 dwRop // raster operation code
269 DPRINT1("FIXME: StretchBlt can only Blt, not Stretch!\n");
279 StretchDIBits(HDC hDC,
289 CONST BITMAPINFO *BitsInfo,
293 return NtGdiStretchDIBits(hDC, XDest, YDest, DestWidth, DestHeight, XSrc, YSrc,
294 SrcWidth, SrcHeight, Bits, BitsInfo, Usage, ROP);
303 CreateDIBSection(HDC hDC,
304 CONST BITMAPINFO *bmi,
310 return NtGdiCreateDIBSection(hDC, bmi, Usage, Bits, hSection, dwOffset);
324 return NtGdiSetPixel(hDC, X, Y, Color);
332 PatBlt(HDC hDC, INT Top, INT Left, INT Width, INT Height, ULONG Rop)
334 return(NtGdiPatBlt(hDC, Top, Left, Width, Height, Rop));
342 PolyPatBlt(HDC hDC,DWORD dwRop,PPATRECT pRects,int cRects,ULONG Reserved)
344 return NtGdiPolyPatBlt(hDC,dwRop,pRects,cRects,Reserved);
350 BOOL STDCALL NtGdiExtFloodFill(HDC hDC, INT XStart, INT YStart, COLORREF Color, UINT FillType)
351 BOOL STDCALL NtGdiFloodFill(HDC hDC, INT XStart, INT YStart, COLORREF Fill)
352 UINT STDCALL NtGdiGetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, RGBQUAD *Colors)
353 COLORREF STDCALL NtGdiGetPixel(HDC hDC,
356 BOOL STDCALL NtGdiSetBitmapDimensionEx(HBITMAP hBitmap,
360 UINT STDCALL NtGdiSetDIBColorTable(HDC hDC,
363 CONST RGBQUAD *Colors)
364 BOOL STDCALL NtGdiSetPixelV(HDC hDC,
368 BOOL STDCALL NtGdiStretchBlt(HDC hDCDest,
380 INT BITMAPOBJ_GetWidthBytes (INT bmWidth, INT bpp)
381 HBITMAP BITMAPOBJ_CopyBitmap(HBITMAP hBitmap)
382 int DIB_GetDIBWidthBytes(int width, int depth)
383 int DIB_GetDIBImageBytes (int width, int height, int depth)
384 int DIB_BitmapInfoSize (const BITMAPINFO * info, WORD coloruse)