[SDK][INCLUDE] Improve gdipluseffects.h (#2196)

CORE-16585
This commit is contained in:
Katayama Hirofumi MZ 2019-12-30 19:57:55 +09:00 committed by GitHub
parent 1674307fd1
commit 5eaea74d46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,59 +19,87 @@
#ifndef _GDIPLUSEFFECTS_H #ifndef _GDIPLUSEFFECTS_H
#define _GDIPLUSEFFECTS_H #define _GDIPLUSEFFECTS_H
typedef struct typedef enum CurveAdjustments
{ {
float radius; AdjustExposure = 0,
AdjustDensity = 1,
AdjustContrast = 2,
AdjustHighlight = 3,
AdjustShadow = 4,
AdjustMidtone = 5,
AdjustWhiteSaturation = 6,
AdjustBlackSaturation = 7
} CurveAdjustments;
typedef enum CurveChannel
{
CurveChannelAll = 0,
CurveChannelRed = 1,
CurveChannelGreen = 2,
CurveChannelBlue = 3
} CurveChannel;
typedef struct BlurParams
{
REAL radius;
BOOL expandEdge; BOOL expandEdge;
} BlurParams; } BlurParams;
typedef struct typedef struct BrightnessContrastParams
{ {
INT brightnessLevel; INT brightnessLevel;
INT contrastLevel; INT contrastLevel;
} BrightnessContrastParams; } BrightnessContrastParams;
typedef struct typedef struct ColorBalanceParams
{ {
INT cyanRed; INT cyanRed;
INT magentaGreen; INT magentaGreen;
INT yellowBlue; INT yellowBlue;
} ColorBalanceParams; } ColorBalanceParams;
typedef struct typedef struct ColorCurveParams
{ {
CurveAdjustments adjustment; CurveAdjustments adjustment;
CurveChannel channel; CurveChannel channel;
INT adjustValue; INT adjustValue;
} ColorCurveParams; } ColorCurveParams;
typedef struct typedef struct ColorLUTParams
{
ColorChannelLUT lutB;
ColorChannelLUT lutG;
ColorChannelLUT lutR;
ColorChannelLUT lutA;
} ColorLUTParams;
typedef struct HueSaturationLightnessParams
{ {
INT hueLevel; INT hueLevel;
INT saturationLevel; INT saturationLevel;
INT lightnessLevel; INT lightnessLevel;
} HueSaturationLightnessParams; } HueSaturationLightnessParams;
typedef struct typedef struct LevelsParams
{ {
INT highlight; INT highlight;
INT midtone; INT midtone;
INT shadow; INT shadow;
} LevelsParams; } LevelsParams;
typedef struct typedef struct RedEyeCorrectionParams
{ {
UINT numberOfAreas; UINT numberOfAreas;
RECT *areas; RECT *areas;
} RedEyeCorrectionParams; } RedEyeCorrectionParams;
typedef struct typedef struct SharpenParams
{ {
REAL radius; REAL radius;
REAL amount; REAL amount;
} SharpenParams; } SharpenParams;
typedef struct typedef struct TintParams
{ {
INT hue; INT hue;
INT amount; INT amount;
@ -80,16 +108,18 @@ typedef struct
class Effect class Effect
{ {
public: public:
Effect(VOID) Effect()
{ {
} }
VOID *GetAuxData(VOID) const VOID *
GetAuxData() const
{ {
return NULL; return NULL;
} }
INT GetAuxDataSize(VOID) INT
GetAuxDataSize()
{ {
return 0; return 0;
} }
@ -109,7 +139,7 @@ class Effect
class Blur : public Effect class Blur : public Effect
{ {
public: public:
Blur(VOID) Blur()
{ {
} }
@ -129,7 +159,7 @@ class Blur : public Effect
class BrightnessContrast : public Effect class BrightnessContrast : public Effect
{ {
public: public:
BrightnessContrast(VOID) BrightnessContrast()
{ {
} }
@ -149,7 +179,7 @@ class BrightnessContrast : public Effect
class ColorBalance : public Effect class ColorBalance : public Effect
{ {
public: public:
ColorBalance(VOID) ColorBalance()
{ {
} }
@ -169,7 +199,7 @@ class ColorBalance : public Effect
class ColorCurve : public Effect class ColorCurve : public Effect
{ {
public: public:
ColorCurve(VOID) ColorCurve()
{ {
} }
@ -189,7 +219,7 @@ class ColorCurve : public Effect
class ColorMatrixEffect : public Effect class ColorMatrixEffect : public Effect
{ {
public: public:
ColorMatrixEffect(VOID) ColorMatrixEffect()
{ {
} }
@ -209,7 +239,7 @@ class ColorMatrixEffect : public Effect
class HueSaturationLightness : public Effect class HueSaturationLightness : public Effect
{ {
public: public:
HueSaturationLightness(VOID) HueSaturationLightness()
{ {
} }
@ -229,7 +259,7 @@ class HueSaturationLightness : public Effect
class Levels : public Effect class Levels : public Effect
{ {
public: public:
Levels(VOID) Levels()
{ {
} }
@ -249,7 +279,7 @@ class Levels : public Effect
class RedEyeCorrection : public Effect class RedEyeCorrection : public Effect
{ {
public: public:
RedEyeCorrection(VOID) RedEyeCorrection()
{ {
} }
@ -269,7 +299,7 @@ class RedEyeCorrection : public Effect
class Sharpen class Sharpen
{ {
public: public:
Sharpen(VOID) Sharpen()
{ {
} }
@ -289,7 +319,7 @@ class Sharpen
class Tint : Effect class Tint : Effect
{ {
public: public:
Tint(VOID) Tint()
{ {
} }