2 * Copyright (C) 2007 Google (Evan Stade)
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #define WINGDIPAPI __stdcall
24 #define GDIPCONST const
30 GpStatus WINGDIPAPI
GdipClonePen(GpPen
*,GpPen
**);
31 GpStatus WINGDIPAPI
GdipCreatePen1(ARGB
,REAL
,GpUnit
,GpPen
**);
32 GpStatus WINGDIPAPI
GdipDeletePen(GpPen
*);
33 GpStatus WINGDIPAPI
GdipGetPenBrushFill(GpPen
*,GpBrush
**);
34 GpStatus WINGDIPAPI
GdipGetPenColor(GpPen
*,ARGB
*);
35 GpStatus WINGDIPAPI
GdipGetPenDashStyle(GpPen
*,GpDashStyle
*);
36 GpStatus WINGDIPAPI
GdipSetPenBrushFill(GpPen
*,GpBrush
*);
37 GpStatus WINGDIPAPI
GdipSetPenColor(GpPen
*,ARGB
);
38 GpStatus WINGDIPAPI
GdipSetPenCustomEndCap(GpPen
*,GpCustomLineCap
*);
39 GpStatus WINGDIPAPI
GdipSetPenCustomStartCap(GpPen
*,GpCustomLineCap
*);
40 GpStatus WINGDIPAPI
GdipSetPenDashStyle(GpPen
*,GpDashStyle
);
41 GpStatus WINGDIPAPI
GdipSetPenEndCap(GpPen
*,GpLineCap
);
42 GpStatus WINGDIPAPI
GdipSetPenLineCap197819(GpPen
*,GpLineCap
,GpLineCap
,GpDashCap
);
43 GpStatus WINGDIPAPI
GdipSetPenLineJoin(GpPen
*,GpLineJoin
);
44 GpStatus WINGDIPAPI
GdipSetPenMiterLimit(GpPen
*,REAL
);
45 GpStatus WINGDIPAPI
GdipSetPenStartCap(GpPen
*,GpLineCap
);
47 GpStatus WINGDIPAPI
GdipCreateFromHDC(HDC
,GpGraphics
**);
48 GpStatus WINGDIPAPI
GdipCreateFromHWND(HWND
,GpGraphics
**);
49 GpStatus WINGDIPAPI
GdipCreateMetafileFromEmf(HENHMETAFILE
,BOOL
,GpMetafile
**);
50 GpStatus WINGDIPAPI
GdipCreateMetafileFromWmf(HMETAFILE
,BOOL
,
51 GDIPCONST WmfPlaceableFileHeader
*,GpMetafile
**);
52 GpStatus WINGDIPAPI
GdipDeleteGraphics(GpGraphics
*);
53 GpStatus WINGDIPAPI
GdipDrawArc(GpGraphics
*,GpPen
*,REAL
,REAL
,REAL
,REAL
,REAL
,REAL
);
54 GpStatus WINGDIPAPI
GdipDrawBezier(GpGraphics
*,GpPen
*,REAL
,REAL
,REAL
,REAL
,REAL
,
56 GpStatus WINGDIPAPI
GdipDrawCurve2(GpGraphics
*,GpPen
*,GDIPCONST GpPointF
*,INT
,REAL
);
57 GpStatus WINGDIPAPI
GdipDrawLineI(GpGraphics
*,GpPen
*,INT
,INT
,INT
,INT
);
58 GpStatus WINGDIPAPI
GdipDrawLines(GpGraphics
*,GpPen
*,GDIPCONST GpPointF
*,INT
);
59 GpStatus WINGDIPAPI
GdipDrawPath(GpGraphics
*,GpPen
*,GpPath
*);
60 GpStatus WINGDIPAPI
GdipDrawPie(GpGraphics
*,GpPen
*,REAL
,REAL
,REAL
,REAL
,REAL
,REAL
);
61 GpStatus WINGDIPAPI
GdipDrawRectangleI(GpGraphics
*,GpPen
*,INT
,INT
,INT
,INT
);
62 GpStatus WINGDIPAPI
GdipFillPath(GpGraphics
*,GpBrush
*,GpPath
*);
63 GpStatus WINGDIPAPI
GdipFillPie(GpGraphics
*,GpBrush
*,REAL
,REAL
,REAL
,REAL
,REAL
,REAL
);
64 GpStatus WINGDIPAPI
GdipFillPolygonI(GpGraphics
*,GpBrush
*,GDIPCONST GpPoint
*,INT
,
66 GpStatus WINGDIPAPI
GdipGetCompositingQuality(GpGraphics
*,CompositingQuality
*);
67 GpStatus WINGDIPAPI
GdipGetInterpolationMode(GpGraphics
*,InterpolationMode
*);
68 GpStatus WINGDIPAPI
GdipGetPageScale(GpGraphics
*,REAL
*);
69 GpStatus WINGDIPAPI
GdipGetPageUnit(GpGraphics
*,GpUnit
*);
70 GpStatus WINGDIPAPI
GdipGetPixelOffsetMode(GpGraphics
*,PixelOffsetMode
*);
71 GpStatus WINGDIPAPI
GdipGetSmoothingMode(GpGraphics
*,SmoothingMode
*);
72 GpStatus WINGDIPAPI
GdipGetWorldTransform(GpGraphics
*,GpMatrix
*);
73 GpStatus WINGDIPAPI
GdipRestoreGraphics(GpGraphics
*,GraphicsState
);
74 GpStatus WINGDIPAPI
GdipSaveGraphics(GpGraphics
*,GraphicsState
*);
75 GpStatus WINGDIPAPI
GdipSetCompositingQuality(GpGraphics
*,CompositingQuality
);
76 GpStatus WINGDIPAPI
GdipSetInterpolationMode(GpGraphics
*,InterpolationMode
);
77 GpStatus WINGDIPAPI
GdipSetPageScale(GpGraphics
*,REAL
);
78 GpStatus WINGDIPAPI
GdipSetPageUnit(GpGraphics
*,GpUnit
);
79 GpStatus WINGDIPAPI
GdipSetPixelOffsetMode(GpGraphics
*,PixelOffsetMode
);
80 GpStatus WINGDIPAPI
GdipSetSmoothingMode(GpGraphics
*,SmoothingMode
);
81 GpStatus WINGDIPAPI
GdipSetWorldTransform(GpGraphics
*,GpMatrix
*);
83 GpStatus WINGDIPAPI
GdipCloneBrush(GpBrush
*,GpBrush
**);
84 GpStatus WINGDIPAPI
GdipCreateSolidFill(ARGB
,GpSolidFill
**);
85 GpStatus WINGDIPAPI
GdipGetBrushType(GpBrush
*,GpBrushType
*);
86 GpStatus WINGDIPAPI
GdipDeleteBrush(GpBrush
*);
87 GpStatus WINGDIPAPI
GdipGetSolidFillColor(GpSolidFill
*,ARGB
*);
88 GpStatus WINGDIPAPI
GdipSetSolidFillColor(GpSolidFill
*,ARGB
);
90 GpStatus WINGDIPAPI
GdipAddPathArc(GpPath
*,REAL
,REAL
,REAL
,REAL
,REAL
,REAL
);
91 GpStatus WINGDIPAPI
GdipAddPathBeziers(GpPath
*,GDIPCONST GpPointF
*,INT
);
92 GpStatus WINGDIPAPI
GdipAddPathLine2(GpPath
*,GDIPCONST GpPointF
*,INT
);
93 GpStatus WINGDIPAPI
GdipAddPathPath(GpPath
*,GDIPCONST GpPath
*,BOOL
);
94 GpStatus WINGDIPAPI
GdipClosePathFigure(GpPath
*);
95 GpStatus WINGDIPAPI
GdipClosePathFigures(GpPath
*);
96 GpStatus WINGDIPAPI
GdipCreatePath(GpFillMode
,GpPath
**);
97 GpStatus WINGDIPAPI
GdipDeletePath(GpPath
*);
98 GpStatus WINGDIPAPI
GdipGetPathFillMode(GpPath
*,GpFillMode
*);
99 GpStatus WINGDIPAPI
GdipGetPathPoints(GpPath
*,GpPointF
*,INT
);
100 GpStatus WINGDIPAPI
GdipGetPathTypes(GpPath
*,BYTE
*,INT
);
101 GpStatus WINGDIPAPI
GdipGetPathWorldBounds(GpPath
*,GpRectF
*,GDIPCONST GpMatrix
*,
103 GpStatus WINGDIPAPI
GdipGetPointCount(GpPath
*,INT
*);
104 GpStatus WINGDIPAPI
GdipStartPathFigure(GpPath
*);
105 GpStatus WINGDIPAPI
GdipResetPath(GpPath
*);
106 GpStatus WINGDIPAPI
GdipSetPathFillMode(GpPath
*,GpFillMode
);
107 GpStatus WINGDIPAPI
GdipTransformPath(GpPath
*,GpMatrix
*);
109 GpStatus WINGDIPAPI
GdipCloneMatrix(GpMatrix
*,GpMatrix
**);
110 GpStatus WINGDIPAPI
GdipCreateMatrix2(REAL
,REAL
,REAL
,REAL
,REAL
,REAL
,GpMatrix
**);
111 GpStatus WINGDIPAPI
GdipCreateMatrix(GpMatrix
**);
112 GpStatus WINGDIPAPI
GdipDeleteMatrix(GpMatrix
*);
113 GpStatus WINGDIPAPI
GdipMultiplyMatrix(GpMatrix
*,GpMatrix
*,GpMatrixOrder
);
114 GpStatus WINGDIPAPI
GdipRotateMatrix(GpMatrix
*,REAL
,GpMatrixOrder
);
115 GpStatus WINGDIPAPI
GdipScaleMatrix(GpMatrix
*,REAL
,REAL
,GpMatrixOrder
);
116 GpStatus WINGDIPAPI
GdipTransformMatrixPoints(GpMatrix
*,GpPointF
*,INT
);
117 GpStatus WINGDIPAPI
GdipTranslateMatrix(GpMatrix
*,REAL
,REAL
,GpMatrixOrder
);
119 GpStatus WINGDIPAPI
GdipCreatePathIter(GpPathIterator
**,GpPath
*);
120 GpStatus WINGDIPAPI
GdipDeletePathIter(GpPathIterator
*);
121 GpStatus WINGDIPAPI
GdipPathIterCopyData(GpPathIterator
*,INT
*,GpPointF
*,BYTE
*,
123 GpStatus WINGDIPAPI
GdipPathIterNextSubpath(GpPathIterator
*,INT
*,INT
*,INT
*,BOOL
*);
124 GpStatus WINGDIPAPI
GdipPathIterRewind(GpPathIterator
*);
126 GpStatus WINGDIPAPI
GdipCloneCustomLineCap(GpCustomLineCap
*,GpCustomLineCap
**);
127 GpStatus WINGDIPAPI
GdipCreateCustomLineCap(GpPath
*,GpPath
*,GpLineCap
,REAL
,
129 GpStatus WINGDIPAPI
GdipDeleteCustomLineCap(GpCustomLineCap
*);
131 GpStatus WINGDIPAPI
GdipDisposeImage(GpImage
*);
132 GpStatus WINGDIPAPI
GdipGetImageHeight(GpImage
*,UINT
*);
133 GpStatus WINGDIPAPI
GdipGetImageHorizontalResolution(GpImage
*,REAL
*);
134 GpStatus WINGDIPAPI
GdipGetImageRawFormat(GpImage
*,GUID
*);
135 GpStatus WINGDIPAPI
GdipGetImageType(GpImage
*,ImageType
*);
136 GpStatus WINGDIPAPI
GdipGetImageVerticalResolution(GpImage
*,REAL
*);
137 GpStatus WINGDIPAPI
GdipGetImageWidth(GpImage
*,UINT
*);
138 GpStatus WINGDIPAPI
GdipImageGetFrameCount(GpImage
*,GDIPCONST GUID
*,UINT
*);