gdiplus: Implement GdipAddPathLine2I.
This commit is contained in:
parent
6ba525d8c4
commit
8360caabfa
|
@ -17,7 +17,7 @@
|
||||||
@ stdcall GdipAddPathEllipse(ptr long long long long)
|
@ stdcall GdipAddPathEllipse(ptr long long long long)
|
||||||
@ stub GdipAddPathEllipseI
|
@ stub GdipAddPathEllipseI
|
||||||
@ stdcall GdipAddPathLine2(ptr ptr long)
|
@ stdcall GdipAddPathLine2(ptr ptr long)
|
||||||
@ stub GdipAddPathLine2I
|
@ stdcall GdipAddPathLine2I(ptr ptr long)
|
||||||
@ stub GdipAddPathLine
|
@ stub GdipAddPathLine
|
||||||
@ stdcall GdipAddPathLineI(ptr long long long long)
|
@ stdcall GdipAddPathLineI(ptr long long long long)
|
||||||
@ stdcall GdipAddPathPath(ptr ptr long)
|
@ stdcall GdipAddPathPath(ptr ptr long)
|
||||||
|
|
|
@ -217,6 +217,30 @@ GpStatus WINGDIPAPI GdipAddPathLine2(GpPath *path, GDIPCONST GpPointF *points,
|
||||||
return Ok;
|
return Ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipAddPathLine2I(GpPath *path, GDIPCONST GpPoint *points, INT count)
|
||||||
|
{
|
||||||
|
GpPointF *pointsF;
|
||||||
|
INT i;
|
||||||
|
GpStatus stat;
|
||||||
|
|
||||||
|
if(count <= 0)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
pointsF = GdipAlloc(sizeof(GpPointF) * count);
|
||||||
|
if(!pointsF) return OutOfMemory;
|
||||||
|
|
||||||
|
for(i = 0;i < count; i++){
|
||||||
|
pointsF[i].X = (REAL)points[i].X;
|
||||||
|
pointsF[i].Y = (REAL)points[i].Y;
|
||||||
|
}
|
||||||
|
|
||||||
|
stat = GdipAddPathLine2(path, pointsF, count);
|
||||||
|
|
||||||
|
GdipFree(pointsF);
|
||||||
|
|
||||||
|
return stat;
|
||||||
|
}
|
||||||
|
|
||||||
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y2)
|
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath *path, INT x1, INT y1, INT x2, INT y2)
|
||||||
{
|
{
|
||||||
INT old_count;
|
INT old_count;
|
||||||
|
|
|
@ -188,6 +188,7 @@ GpStatus WINGDIPAPI GdipAddPathEllipse(GpPath*,REAL,REAL,REAL,REAL);
|
||||||
GpStatus WINGDIPAPI GdipAddPathEllipseI(GpPath*,INT,INT,INT,INT);
|
GpStatus WINGDIPAPI GdipAddPathEllipseI(GpPath*,INT,INT,INT,INT);
|
||||||
GpStatus WINGDIPAPI GdipAddPathLine(GpPath*,REAL,REAL,REAL,REAL);
|
GpStatus WINGDIPAPI GdipAddPathLine(GpPath*,REAL,REAL,REAL,REAL);
|
||||||
GpStatus WINGDIPAPI GdipAddPathLine2(GpPath*,GDIPCONST GpPointF*,INT);
|
GpStatus WINGDIPAPI GdipAddPathLine2(GpPath*,GDIPCONST GpPointF*,INT);
|
||||||
|
GpStatus WINGDIPAPI GdipAddPathLine2I(GpPath*,GDIPCONST GpPoint*,INT);
|
||||||
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath*,INT,INT,INT,INT);
|
GpStatus WINGDIPAPI GdipAddPathLineI(GpPath*,INT,INT,INT,INT);
|
||||||
GpStatus WINGDIPAPI GdipAddPathPath(GpPath*,GDIPCONST GpPath*,BOOL);
|
GpStatus WINGDIPAPI GdipAddPathPath(GpPath*,GDIPCONST GpPath*,BOOL);
|
||||||
GpStatus WINGDIPAPI GdipClonePath(GpPath*,GpPath**);
|
GpStatus WINGDIPAPI GdipClonePath(GpPath*,GpPath**);
|
||||||
|
|
Loading…
Reference in New Issue