gdiplus: Added GdipCreateLineBrushFromRectI.

This commit is contained in:
Evan Stade 2007-08-07 18:43:00 -07:00 committed by Alexandre Julliard
parent ec3049168c
commit d806c67821
4 changed files with 29 additions and 1 deletions

View File

@ -115,6 +115,23 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
return Ok;
}
GpStatus WINGDIPAPI GdipCreateLineBrushFromRectI(GDIPCONST GpRect* rect,
ARGB startcolor, ARGB endcolor, LinearGradientMode mode, GpWrapMode wrap,
GpLineGradient **line)
{
GpPointF start, end;
if(!line || !rect)
return InvalidParameter;
start.X = (REAL) rect->X;
start.Y = (REAL) rect->Y;
end.X = (REAL) (rect->X + rect->Width);
end.Y = (REAL) (rect->Y + rect->Height);
return GdipCreateLineBrush(&start, &end, startcolor, endcolor, wrap, line);
}
GpStatus WINGDIPAPI GdipCreatePathGradient(GDIPCONST GpPointF* points,
INT count, GpWrapMode wrap, GpPathGradient **grad)
{

View File

@ -100,7 +100,7 @@
@ stdcall GdipCreateImageAttributes(ptr)
@ stdcall GdipCreateLineBrush(ptr ptr long long long ptr)
@ stub GdipCreateLineBrushFromRect
@ stub GdipCreateLineBrushFromRectI
@ stdcall GdipCreateLineBrushFromRectI(ptr long long long long ptr)
@ stub GdipCreateLineBrushFromRectWithAngle
@ stub GdipCreateLineBrushFromRectWithAngleI
@ stub GdipCreateLineBrushI

View File

@ -183,6 +183,14 @@ enum MetafileType
MetafileTypeEmfPlusDual
};
enum LinearGradientMode
{
LinearGradientModeHorizontal,
LinearGradientModeVertical,
LinearGradientModeForwardDiagonal,
LinearGradientModeBackwardDiagonal
};
#ifndef __cplusplus
typedef enum Unit Unit;
@ -202,6 +210,7 @@ typedef enum MatrixOrder MatrixOrder;
typedef enum ImageType ImageType;
typedef enum WrapMode WrapMode;
typedef enum MetafileType MetafileType;
typedef enum LinearGradientMode LinearGradientMode;
#endif /* end of c typedefs */

View File

@ -146,6 +146,8 @@ GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
GpStatus WINGDIPAPI GdipCloneMatrix(GpMatrix*,GpMatrix**);
GpStatus WINGDIPAPI GdipCreateLineBrushFromRectI(GDIPCONST GpRect*,ARGB,ARGB,
LinearGradientMode,GpWrapMode,GpLineGradient**);
GpStatus WINGDIPAPI GdipCreateMatrix(GpMatrix**);
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
GpStatus WINGDIPAPI GdipCreateMatrix3(GDIPCONST GpRectF *,GDIPCONST GpPointF*,