2 * GDI bitmap definitions
4 * Copyright 1993, 1994 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_BITMAP_H
22 #define __WINE_BITMAP_H
26 /* GDI logical bitmap object */
27 typedef struct tagBITMAPOBJ
31 SIZE size
; /* For SetBitmapDimension() */
32 const struct tagDC_FUNCS
*funcs
; /* DC function table */
33 void *physBitmap
; /* ptr to device specific data */
34 /* For device-independent bitmaps: */
36 SEGPTR segptr_bits
; /* segptr to DIB bits */
39 /* objects/bitmap.c */
40 extern HBITMAP
BITMAP_CopyBitmap( HBITMAP hbitmap
);
41 extern BOOL
BITMAP_SetOwnerDC( HBITMAP hbitmap
, DC
*dc
);
44 extern int DIB_GetDIBWidthBytes( int width
, int depth
);
45 extern int DIB_GetDIBImageBytes( int width
, int height
, int depth
);
46 extern int DIB_BitmapInfoSize( const BITMAPINFO
* info
, WORD coloruse
);
47 extern HBITMAP
DIB_CreateDIBSection( HDC hdc
, BITMAPINFO
*bmi
, UINT usage
, LPVOID
*bits
,
48 HANDLE section
, DWORD offset
, DWORD ovr_pitch
);
49 extern void DIB_UpdateDIBSection( DC
*dc
, BOOL toDIB
);
50 extern void DIB_SelectDIBSection( DC
*dc
, BITMAPOBJ
*bmp
);
52 #endif /* __WINE_BITMAP_H */