-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdibutil.h
More file actions
25 lines (20 loc) · 711 Bytes
/
dibutil.h
File metadata and controls
25 lines (20 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* PortTool v2.2 dibutil.h */
/*
* dibutil.h
*
* Copyright (C) 1991-1996 Microsoft Corporation. All rights reserved.
*
* Header file for Device-Independent Bitmap (DIB) API. Provides
* function prototypes and constants for the following functions:
*
* AllocRoomForDIB() - Allocates memory for a DIB
*
*/
/* DIB constants */
#define PALVERSION 0x300
/* DIB macros */
#define IS_WIN30_DIB(lpbi) ((*(LPDWORD)(lpbi)) == sizeof(BITMAPINFOHEADER))
#define RECTWIDTH(lpRect) ((lpRect)->right - (lpRect)->left)
#define RECTHEIGHT(lpRect) ((lpRect)->bottom - (lpRect)->top)
/* function prototypes */
HANDLE AllocRoomForDIB(BITMAPINFOHEADER bi, HBITMAP hBitmap);