OSDN Git Service

6bba286c8caf2c8f0633627afb3fa35d87a13fe4
[mingw/mingw-org-wsl.git] / include / gdiplus / gdipluseffects.h
1 /**
2  * @file gdipluseffects.h
3  * @copy 2012 MinGW.org project
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  * 
12  * The above copyright notice and this permission notice (including the next
13  * paragraph) shall be included in all copies or substantial portions of the
14  * Software.
15  * 
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef __GDIPLUS_EFFECTS_H
25 #define __GDIPLUS_EFFECTS_H
26 #pragma GCC system_header
27 #include <_mingw.h>
28
29 /*
30  * GDI+ filters and effects
31  */
32
33 typedef enum CurveAdjustments {
34         AdjustExposure = 0,
35         AdjustDensity = 1,
36         AdjustContrast = 2,
37         AdjustHighlight = 3,
38         AdjustShadow = 4,
39         AdjustMidtone = 5,
40         AdjustWhiteSaturation = 6,
41         AdjustBlackSaturation = 7
42 } CurveAdjustments;
43
44 typedef enum CurveChannel {
45         CurveChannelAll = 0,
46         CurveChannelRed = 1,
47         CurveChannelGreen = 2,
48         CurveChannelBlue = 3
49 } CurveChannel;
50
51 typedef struct BlurParams {
52         REAL radius;
53         BOOL expandEdge;
54 } BlurParams;
55
56 typedef struct BrightnessContrastParams {
57         INT brightnessLevel;
58         INT contrastLevel;
59 } BrightnessContrastParams;
60
61 typedef struct ColorBalanceParams {
62         INT cyanRed;
63         INT magentaGreen;
64         INT yellowBlue;
65 } ColorBalanceParams;
66
67 typedef struct ColorCurveParams {
68         CurveAdjustments adjustment;
69         CurveChannel channel;
70         INT adjustValue;
71 } ColorCurveParams;
72
73 typedef struct ColorLUTParams {
74         ColorChannelLUT lutB;
75         ColorChannelLUT lutG;
76         ColorChannelLUT lutR;
77         ColorChannelLUT lutA;
78 } ColorLUTParams;
79
80 typedef struct HueSaturationLightnessParams {
81         INT hueLevel;
82         INT saturationLevel;
83         INT lightnessLevel;
84 } HueSaturationLightnessParams;
85
86 typedef struct LevelsParams {
87         INT highlight;
88         INT midtone;
89         INT shadow;
90 } LevelsParams;
91
92 typedef struct RedEyeCorrectionParams {
93         UINT numberOfAreas;
94         RECT *areas;
95 } RedEyeCorrectionParams;
96
97 typedef struct SharpenParams {
98         REAL radius;
99         REAL amount;
100 } SharpenParams;
101
102 typedef struct TintParams {
103         INT hue;
104         INT amount;
105 } TintParams;
106
107 extern const GUID BlurEffectGuid;                    /* ? */
108 extern const GUID BrightnessContrastEffectGuid;      /* ? */
109 extern const GUID ColorBalanceEffectGuid;            /* ? */
110 extern const GUID ColorCurveEffectGuid;              /* ? */
111 extern const GUID ColorLUTEffectGuid;                /* ? */
112 extern const GUID ColorMatrixEffectGuid;             /* ? */
113 extern const GUID HueSaturationLightnessEffectGuid;  /* ? */
114 extern const GUID LevelsEffectGuid;                  /* ? */
115 extern const GUID RedEyeCorrectionEffectGuid;        /* ? */
116 extern const GUID SharpenEffectGuid;                 /* ? */
117 extern const GUID TintEffectGuid;                    /* ? */
118
119
120 #endif /* __GDIPLUS_EFFECTS_H */