Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/* Copyright (C) 1994-2001, Ghostgum Software Pty Ltd.  All rights reserved.
2
 
3
  This software is provided AS-IS with no warranty, either express or
4
  implied.
5
 
6
  This software is distributed under license and may not be copied,
7
  modified or distributed except as expressly authorized under the terms
8
  of the license contained in the file LICENSE in this distribution.
9
 
10
  For more information about licensing, please refer to
11
  http://www.ghostscript.com/licensing/. For information on
12
  commercial licensing, go to http://www.artifex.com/licensing/ or
13
  contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14
  San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15
*/
16
 
17
/* $Id: gsdllwin.h,v 1.5 2002/02/21 22:24:52 giles Exp $ */
18
/* gsdll extension for Microsoft Windows platforms */
19
 
20
#ifndef gsdllwin_INCLUDED
21
#  define gsdllwin_INCLUDED
22
 
23
/* DLL exported functions */
24
/* for load time dynamic linking */
25
GSDLLEXPORT HGLOBAL GSDLLAPI gsdll_copy_dib(unsigned char * device);
26
GSDLLEXPORT HPALETTE GSDLLAPI gsdll_copy_palette(unsigned char * device);
27
GSDLLEXPORT void GSDLLAPI gsdll_draw(unsigned char * device, HDC hdc, LPRECT dest,
28
			 LPRECT src);
29
GSDLLEXPORT int GSDLLAPI gsdll_get_bitmap_row(unsigned char *device,
30
				  LPBITMAPINFOHEADER pbmih,
31
				  LPRGBQUAD prgbquad, LPBYTE * ppbyte,
32
				  unsigned int row);
33
 
34
/* Function pointer typedefs */
35
/* for run time dynamic linking */
36
typedef HGLOBAL (GSDLLAPI * PFN_gsdll_copy_dib)(unsigned char *);
37
typedef HPALETTE (GSDLLAPI * PFN_gsdll_copy_palette)(unsigned char *);
38
typedef void (GSDLLAPI * PFN_gsdll_draw) (unsigned char *, HDC, LPRECT,
39
					  LPRECT);
40
typedef int (GSDLLAPI * PFN_gsdll_get_bitmap_row)
41
     (unsigned char *device, LPBITMAPINFOHEADER pbmih, LPRGBQUAD prgbquad,
42
      LPBYTE * ppbyte, unsigned int row);
43
 
44
#endif /* gsdllwin_INCLUDED */