gdiplus: Added GdipSetLineWrapMode.
This commit is contained in:
parent
2b438a0220
commit
37657bc4d1
|
@ -83,7 +83,7 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
|
|||
{
|
||||
COLORREF col = ARGB2COLORREF(startcolor);
|
||||
|
||||
if(!line || !startpoint || !endpoint)
|
||||
if(!line || !startpoint || !endpoint || wrap == WrapModeClamp)
|
||||
return InvalidParameter;
|
||||
|
||||
*line = GdipAlloc(sizeof(GpLineGradient));
|
||||
|
@ -316,6 +316,17 @@ GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb)
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient *line,
|
||||
GpWrapMode wrap)
|
||||
{
|
||||
if(!line || wrap == WrapModeClamp)
|
||||
return InvalidParameter;
|
||||
|
||||
line->wrap = wrap;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
|
||||
ARGB argb)
|
||||
{
|
||||
|
|
|
@ -542,7 +542,7 @@
|
|||
@ stub GdipSetLinePresetBlend
|
||||
@ stub GdipSetLineSigmaBlend
|
||||
@ stub GdipSetLineTransform
|
||||
@ stub GdipSetLineWrapMode
|
||||
@ stdcall GdipSetLineWrapMode(ptr long)
|
||||
@ stdcall GdipSetMatrixElements(ptr long long long long long long)
|
||||
@ stub GdipSetMetafileDownLevelRasterizationLimit
|
||||
@ stdcall GdipSetPageScale(ptr long)
|
||||
|
|
|
@ -106,6 +106,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
|
|||
GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
|
||||
ARGB*,INT*);
|
||||
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
|
||||
GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient*,REAL,REAL);
|
||||
|
|
Loading…
Reference in New Issue