gdiplus: Added GdipFillRectangleI.
This commit is contained in:
parent
d806c67821
commit
bb904a2779
@ -227,7 +227,7 @@
|
|||||||
@ stdcall GdipFillPolygon(ptr ptr ptr long long)
|
@ stdcall GdipFillPolygon(ptr ptr ptr long long)
|
||||||
@ stdcall GdipFillPolygonI(ptr ptr ptr long long)
|
@ stdcall GdipFillPolygonI(ptr ptr ptr long long)
|
||||||
@ stub GdipFillRectangle
|
@ stub GdipFillRectangle
|
||||||
@ stub GdipFillRectangleI
|
@ stdcall GdipFillRectangleI(ptr ptr long long long long)
|
||||||
@ stub GdipFillRectangles
|
@ stub GdipFillRectangles
|
||||||
@ stub GdipFillRectanglesI
|
@ stub GdipFillRectanglesI
|
||||||
@ stub GdipFillRegion
|
@ stub GdipFillRegion
|
||||||
|
@ -1324,6 +1324,39 @@ end:
|
|||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush,
|
||||||
|
INT x, INT y, INT width, INT height)
|
||||||
|
{
|
||||||
|
INT save_state;
|
||||||
|
GpPointF ptf[4];
|
||||||
|
POINT pti[4];
|
||||||
|
|
||||||
|
if(!graphics || !brush)
|
||||||
|
return InvalidParameter;
|
||||||
|
|
||||||
|
ptf[0].X = x;
|
||||||
|
ptf[0].Y = y;
|
||||||
|
ptf[1].X = x + width;
|
||||||
|
ptf[1].Y = y;
|
||||||
|
ptf[2].X = x + width;
|
||||||
|
ptf[2].Y = y + height;
|
||||||
|
ptf[3].X = x;
|
||||||
|
ptf[3].Y = y + height;
|
||||||
|
|
||||||
|
save_state = SaveDC(graphics->hdc);
|
||||||
|
EndPath(graphics->hdc);
|
||||||
|
SelectObject(graphics->hdc, brush->gdibrush);
|
||||||
|
SelectObject(graphics->hdc, GetStockObject(NULL_PEN));
|
||||||
|
|
||||||
|
transform_and_round_points(graphics, pti, ptf, 4);
|
||||||
|
|
||||||
|
Polygon(graphics->hdc, pti, 4);
|
||||||
|
|
||||||
|
RestoreDC(graphics->hdc, save_state);
|
||||||
|
|
||||||
|
return Ok;
|
||||||
|
}
|
||||||
|
|
||||||
/* FIXME: Compositing quality is not used anywhere except the getter/setter. */
|
/* FIXME: Compositing quality is not used anywhere except the getter/setter. */
|
||||||
GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics *graphics,
|
GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics *graphics,
|
||||||
CompositingQuality *quality)
|
CompositingQuality *quality)
|
||||||
|
@ -74,6 +74,7 @@ GpStatus WINGDIPAPI GdipFillPath(GpGraphics*,GpBrush*,GpPath*);
|
|||||||
GpStatus WINGDIPAPI GdipFillPie(GpGraphics*,GpBrush*,REAL,REAL,REAL,REAL,REAL,REAL);
|
GpStatus WINGDIPAPI GdipFillPie(GpGraphics*,GpBrush*,REAL,REAL,REAL,REAL,REAL,REAL);
|
||||||
GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT,
|
GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics*,GpBrush*,GDIPCONST GpPoint*,INT,
|
||||||
GpFillMode);
|
GpFillMode);
|
||||||
|
GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics*,GpBrush*,INT,INT,INT,INT);
|
||||||
GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics*,CompositingQuality*);
|
GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics*,CompositingQuality*);
|
||||||
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
|
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics*,InterpolationMode*);
|
||||||
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
|
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics*,REAL*);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user