gdiplus: Added GdipGetLineGammaCorrection/GdipSetLineGammaCorrection.
This commit is contained in:
parent
48ae8ea542
commit
ddea5bd7ba
|
@ -102,6 +102,7 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
|
||||||
(*line)->startcolor = startcolor;
|
(*line)->startcolor = startcolor;
|
||||||
(*line)->endcolor = endcolor;
|
(*line)->endcolor = endcolor;
|
||||||
(*line)->wrap = wrap;
|
(*line)->wrap = wrap;
|
||||||
|
(*line)->gamma = FALSE;
|
||||||
|
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
@ -246,6 +247,17 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush *brush)
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipGetLineGammaCorrection(GpLineGradient *line,
|
||||||
|
BOOL *usinggamma)
|
||||||
|
{
|
||||||
|
if(!line)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
*usinggamma = line->gamma;
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient *grad,
|
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient *grad,
|
||||||
GpPointF *point)
|
GpPointF *point)
|
||||||
{
|
{
|
||||||
|
@ -316,6 +328,17 @@ GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb)
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipSetLineGammaCorrection(GpLineGradient *line,
|
||||||
|
BOOL usegamma)
|
||||||
|
{
|
||||||
|
if(!line)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
line->gamma = usegamma;
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient *line, REAL focus,
|
GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient *line, REAL focus,
|
||||||
REAL scale)
|
REAL scale)
|
||||||
{
|
{
|
||||||
|
|
|
@ -303,7 +303,7 @@
|
||||||
@ stub GdipGetLineBlend
|
@ stub GdipGetLineBlend
|
||||||
@ stub GdipGetLineBlendCount
|
@ stub GdipGetLineBlendCount
|
||||||
@ stub GdipGetLineColors
|
@ stub GdipGetLineColors
|
||||||
@ stub GdipGetLineGammaCorrection
|
@ stdcall GdipGetLineGammaCorrection(ptr ptr)
|
||||||
@ stub GdipGetLinePresetBlend
|
@ stub GdipGetLinePresetBlend
|
||||||
@ stub GdipGetLinePresetBlendCount
|
@ stub GdipGetLinePresetBlendCount
|
||||||
@ stub GdipGetLineRect
|
@ stub GdipGetLineRect
|
||||||
|
@ -537,7 +537,7 @@
|
||||||
@ stdcall GdipSetInterpolationMode(ptr long)
|
@ stdcall GdipSetInterpolationMode(ptr long)
|
||||||
@ stub GdipSetLineBlend
|
@ stub GdipSetLineBlend
|
||||||
@ stub GdipSetLineColors
|
@ stub GdipSetLineColors
|
||||||
@ stub GdipSetLineGammaCorrection
|
@ stdcall GdipSetLineGammaCorrection(ptr long)
|
||||||
@ stub GdipSetLineLinearBlend
|
@ stub GdipSetLineLinearBlend
|
||||||
@ stub GdipSetLinePresetBlend
|
@ stub GdipSetLinePresetBlend
|
||||||
@ stdcall GdipSetLineSigmaBlend(ptr long long)
|
@ stdcall GdipSetLineSigmaBlend(ptr long long)
|
||||||
|
|
|
@ -111,6 +111,7 @@ struct GpLineGradient{
|
||||||
ARGB startcolor;
|
ARGB startcolor;
|
||||||
ARGB endcolor;
|
ARGB endcolor;
|
||||||
GpWrapMode wrap;
|
GpWrapMode wrap;
|
||||||
|
BOOL gamma;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct GpPath{
|
struct GpPath{
|
||||||
|
|
|
@ -99,6 +99,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath*,
|
||||||
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
|
GpStatus WINGDIPAPI GdipCreateSolidFill(ARGB,GpSolidFill**);
|
||||||
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
|
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
|
||||||
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
|
GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
|
||||||
|
GpStatus WINGDIPAPI GdipGetLineGammaCorrection(GpLineGradient*,BOOL*);
|
||||||
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
|
GpStatus WINGDIPAPI GdipGetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
|
||||||
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient*,REAL*,REAL*);
|
GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient*,REAL*,REAL*);
|
||||||
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*);
|
GpStatus WINGDIPAPI GdipGetPathGradientGammaCorrection(GpPathGradient*,BOOL*);
|
||||||
|
@ -106,6 +107,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
|
||||||
GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
|
GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
|
||||||
ARGB*,INT*);
|
ARGB*,INT*);
|
||||||
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
|
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
|
||||||
|
GpStatus WINGDIPAPI GdipSetLineGammaCorrection(GpLineGradient*,BOOL);
|
||||||
GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient*,REAL,REAL);
|
GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient*,REAL,REAL);
|
||||||
GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);
|
GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);
|
||||||
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
|
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
|
||||||
|
|
Loading…
Reference in New Issue