Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 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 26 27 28 29
30 1 2 3 4 5 6


ImDib.h
01: /*
02:  * The Python Imaging Library
03:  * $Id$
04:  *
05:  * Windows DIB specifics
06:  *
07:  * Copyright (c) Secret Labs AB 1997-98.
08:  * Copyright (c) Fredrik Lundh 1996.
09:  *
10:  * See the README file for information on usage and redistribution.
11:  */
12: 
13: #ifdef WIN32
14: 
15: #if (defined(_MSC_VER) && _MSC_VER >= 1200) || (defined __GNUC__)
16: /* already defined in basetsd.h */
17: #undef INT32
18: #undef INT64
19: #undef UINT32
20: #endif
21: 
22: #include <windows.h>
23: 
24: #if defined(__cplusplus)
25: extern "C" {
26: #endif
27: 
28: struct ImagingDIBInstance {
29:     /* Windows interface */
30:     HDC dc;
31:     HBITMAP bitmap;
32:     HGDIOBJ old_bitmap;
33:     BITMAPINFO *info;
34:     UINT8 *bits;
35:     HPALETTE palette;
36:     /* Used by cut and paste */
37:     char mode[4];
38:     int xsize, ysize;
39:     int pixelsize;
40:     int linesize;
41:     ImagingShuffler pack;
42:     ImagingShuffler unpack;
43: };
44: 
45: typedef struct ImagingDIBInstance* ImagingDIB;
46: 
47: extern char* ImagingGetModeDIB(int size_out[2]);
48: 
49: extern ImagingDIB ImagingNewDIB(const char *mode, int xsize, int ysize);
50: 
51: extern void ImagingDeleteDIB(ImagingDIB im);
52: 
53: extern void ImagingDrawDIB(ImagingDIB dib, int dc, int dst[4], int src[4]);
54: extern void ImagingExposeDIB(ImagingDIB dib, int dc);
55: 
56: extern int ImagingQueryPaletteDIB(ImagingDIB dib, int dc);
57: 
58: extern void ImagingPasteDIB(ImagingDIB dib, Imaging im, int xy[4]);
59: 
60: #if defined(__cplusplus)
61: }
62: #endif
63: 
64: #endif
65: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/