Commit 9ea7ef46 authored by Evan Stade's avatar Evan Stade Committed by Alexandre Julliard

gdiplus: Added GdipS/GetPathGradientGammaCorrection.

parent 15dce3a4
...@@ -84,6 +84,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points, ...@@ -84,6 +84,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
(*grad)->brush.bt = BrushTypePathGradient; (*grad)->brush.bt = BrushTypePathGradient;
(*grad)->centercolor = 0xffffffff; (*grad)->centercolor = 0xffffffff;
(*grad)->wrap = wrap; (*grad)->wrap = wrap;
(*grad)->gamma = FALSE;
return Ok; return Ok;
} }
...@@ -123,6 +124,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path, ...@@ -123,6 +124,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
(*grad)->brush.bt = BrushTypePathGradient; (*grad)->brush.bt = BrushTypePathGradient;
(*grad)->centercolor = 0xffffffff; (*grad)->centercolor = 0xffffffff;
(*grad)->wrap = WrapModeClamp; (*grad)->wrap = WrapModeClamp;
(*grad)->gamma = FALSE;
return Ok; return Ok;
} }
...@@ -166,6 +168,17 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush) ...@@ -166,6 +168,17 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient *grad,
BOOL *gamma)
{
if(!grad || !gamma)
return InvalidParameter;
*gamma = grad->gamma;
return Ok;
}
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient *grad, GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient *grad,
INT *count) INT *count)
{ {
...@@ -216,6 +229,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad, ...@@ -216,6 +229,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
return Ok; return Ok;
} }
GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient *grad,
BOOL gamma)
{
if(!grad)
return InvalidParameter;
grad->gamma = gamma;
return Ok;
}
GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient *grad, GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient *grad,
REAL focus, REAL scale) REAL focus, REAL scale)
{ {
......
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
@ stub GdipGetPathGradientCenterPoint @ stub GdipGetPathGradientCenterPoint
@ stub GdipGetPathGradientCenterPointI @ stub GdipGetPathGradientCenterPointI
@ stub GdipGetPathGradientFocusScales @ stub GdipGetPathGradientFocusScales
@ stub GdipGetPathGradientGammaCorrection @ stdcall GdipGetPathGradientGammaCorrection(ptr ptr)
@ stub GdipGetPathGradientPath @ stub GdipGetPathGradientPath
@ stdcall GdipGetPathGradientPointCount(ptr ptr) @ stdcall GdipGetPathGradientPointCount(ptr ptr)
@ stub GdipGetPathGradientPresetBlend @ stub GdipGetPathGradientPresetBlend
...@@ -553,7 +553,7 @@ ...@@ -553,7 +553,7 @@
@ stub GdipSetPathGradientCenterPoint @ stub GdipSetPathGradientCenterPoint
@ stub GdipSetPathGradientCenterPointI @ stub GdipSetPathGradientCenterPointI
@ stub GdipSetPathGradientFocusScales @ stub GdipSetPathGradientFocusScales
@ stub GdipSetPathGradientGammaCorrection @ stdcall GdipSetPathGradientGammaCorrection(ptr long)
@ stub GdipSetPathGradientLinearBlend @ stub GdipSetPathGradientLinearBlend
@ stub GdipSetPathGradientPath @ stub GdipSetPathGradientPath
@ stub GdipSetPathGradientPresetBlend @ stub GdipSetPathGradientPresetBlend
......
...@@ -97,6 +97,7 @@ struct GpPathGradient{ ...@@ -97,6 +97,7 @@ struct GpPathGradient{
PathData pathdata; PathData pathdata;
ARGB centercolor; ARGB centercolor;
GpWrapMode wrap; GpWrapMode wrap;
BOOL gamma;
}; };
struct GpPath{ struct GpPath{
......
...@@ -94,12 +94,14 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*, ...@@ -94,12 +94,14 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
GpPathGradient**); GpPathGradient**);
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**); GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*); GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*);
GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*); GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*, GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
ARGB*,INT*); ARGB*,INT*);
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*); GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB); GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
GpStatus WINGDIPAPI GdipSetPathGradientGammaCorrection(GpPathGradient*,BOOL);
GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL); GpStatus WINGDIPAPI GdipSetPathGradientSigmaBlend(GpPathGradient*,REAL,REAL);
GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*, GpStatus WINGDIPAPI GdipSetPathGradientSurroundColorsWithCount(GpPathGradient*,
ARGB*,INT*); ARGB*,INT*);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment