gdiplus: Added GdipSetPathGradientWrapMode.
This commit is contained in:
parent
f2cf5551db
commit
f0dbfe959f
|
@ -67,6 +67,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradientFromPath(GDIPCONST GpPath* path,
|
|||
(*grad)->brush.gdibrush = CreateSolidBrush(col);
|
||||
(*grad)->brush.bt = BrushTypeSolidColor;
|
||||
(*grad)->centercolor = 0xffffffff;
|
||||
(*grad)->wrap = WrapModeClamp;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
@ -135,6 +136,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad,
|
||||
GpWrapMode wrap)
|
||||
{
|
||||
if(!grad)
|
||||
return InvalidParameter;
|
||||
|
||||
grad->wrap = wrap;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill *sf, ARGB argb)
|
||||
{
|
||||
if(!sf)
|
||||
|
|
|
@ -560,7 +560,7 @@
|
|||
@ stub GdipSetPathGradientSigmaBlend
|
||||
@ stub GdipSetPathGradientSurroundColorsWithCount
|
||||
@ stub GdipSetPathGradientTransform
|
||||
@ stub GdipSetPathGradientWrapMode
|
||||
@ stdcall GdipSetPathGradientWrapMode(ptr long)
|
||||
@ stub GdipSetPathMarker
|
||||
@ stdcall GdipSetPenBrushFill(ptr ptr)
|
||||
@ stdcall GdipSetPenColor(ptr long)
|
||||
|
|
|
@ -95,6 +95,7 @@ struct GpSolidFill{
|
|||
struct GpPathGradient{
|
||||
GpBrush brush;
|
||||
ARGB centercolor;
|
||||
GpWrapMode wrap;
|
||||
};
|
||||
|
||||
struct GpPath{
|
||||
|
|
|
@ -95,6 +95,7 @@ GpStatus WINGDIPAPI GdipGetBrushType(GpBrush*,GpBrushType*);
|
|||
GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
|
||||
GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
|
||||
GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
|
||||
GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
|
||||
|
||||
GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);
|
||||
|
|
|
@ -66,5 +66,6 @@ typedef DashCap GpDashCap;
|
|||
typedef DashStyle GpDashStyle;
|
||||
typedef MatrixOrder GpMatrixOrder;
|
||||
typedef Point GpPoint;
|
||||
typedef WrapMode GpWrapMode;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue