1 /*
2  * $Id: wgdiplus.h,v 1.11 2016/11/18 18:06:28 markisch Exp $
3  */
4 
5 /*
6 Copyright (c) 2011 Bastian Maerkisch. All rights reserved.
7 
8 Redistribution and use in source and binary forms, with or without modification, are
9 permitted provided that the following conditions are met:
10 
11    1. Redistributions of source code must retain the above copyright notice, this list of
12       conditions and the following disclaimer.
13 
14    2. Redistributions in binary form must reproduce the above copyright notice, this list
15       of conditions and the following disclaimer in the documentation and/or other materials
16       provided with the distribution.
17 
18 THIS SOFTWARE IS PROVIDED BY Bastian Maerkisch ``AS IS'' AND ANY EXPRESS OR IMPLIED
19 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> OR
21 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
24 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26 ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28 
29 
30 #include <windows.h>
31 #include "wgnuplib.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 extern void gdiplusInit(void);
38 extern void gdiplusCleanup(void);
39 
40 extern void InitFont_gdiplus(LPGW lpgw, HDC hdc, LPRECT rect);
41 
42 extern void drawgraph_gdiplus(LPGW lpgw, HDC hdc, LPRECT rect);
43 extern void metafile_gdiplus(LPGW lpgw, HDC hdc, LPRECT rect, LPWSTR name);
44 extern HENHMETAFILE clipboard_gdiplus(LPGW lpgw, HDC hdc, LPRECT rect);
45 extern void print_gdiplus(LPGW lpgw, HDC hdc, HANDLE printer, LPRECT rect);
46 
47 extern void SaveAsBitmap(LPGW lpgw);
48 extern HBITMAP gdiplusLoadBitmap(LPWSTR file, int size);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53