mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 13:48:42 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
- More BITMAPV5INFO fun - Probe max size we are asked for when converting to V5 Info [USER32] [WIN32K] - CreateDIBitmap : Move safety handling to win32k, where it belongs. More code cleanness! svn path=/branches/reactos-yarotows/; revision=47701
39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include "surface.h"
|
|
|
|
typedef struct tagBITMAPV5INFO
|
|
{
|
|
BITMAPV5HEADER bmiHeader;
|
|
RGBQUAD bmiColors[256];
|
|
} BITMAPV5INFO, *PBITMAPV5INFO;
|
|
|
|
INT APIENTRY BITMAP_GetObject(SURFACE * bmp, INT count, LPVOID buffer);
|
|
HBITMAP FASTCALL IntCreateBitmap(IN SIZEL Size, IN LONG Width, IN ULONG Format, IN ULONG Flags, IN PVOID Bits);
|
|
HBITMAP FASTCALL BITMAP_CopyBitmap (HBITMAP hBitmap);
|
|
UINT FASTCALL BITMAP_GetRealBitsPixel(UINT nBitsPixel);
|
|
INT FASTCALL BITMAP_GetWidthBytes (INT bmWidth, INT bpp);
|
|
NTSTATUS FASTCALL ProbeAndConvertToBitmapV5Info( OUT PBITMAPV5INFO pbmiDst, IN CONST BITMAPINFO* pbmiUnsafe, IN DWORD dwUse, UINT MaxSize);
|
|
VOID FASTCALL GetBMIFromBitmapV5Info(IN PBITMAPV5INFO pbmiSrc, OUT PBITMAPINFO pbmiDst, IN DWORD dwUse);
|
|
|
|
HBITMAP
|
|
APIENTRY
|
|
GreCreateBitmap(
|
|
IN INT nWidth,
|
|
IN INT nHeight,
|
|
IN UINT cPlanes,
|
|
IN UINT cBitsPixel,
|
|
IN OPTIONAL PVOID pvBits);
|
|
|
|
HBITMAP
|
|
APIENTRY
|
|
GreCreateBitmapEx(
|
|
IN INT nWidth,
|
|
IN INT nHeight,
|
|
IN ULONG cjWidthBytes,
|
|
IN ULONG iFormat,
|
|
IN USHORT fjBitmap,
|
|
IN ULONG cjBits,
|
|
IN OPTIONAL PVOID pvBits);
|
|
|