gdiplus: Add some TRACE(..) to Graphics.
This commit is contained in:
parent
b66685cdd8
commit
29f4c9d8a0
|
@ -717,6 +717,8 @@ end:
|
|||
|
||||
GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
|
||||
{
|
||||
TRACE("(%p, %p)\n", hdc, graphics);
|
||||
|
||||
return GdipCreateFromHDC2(hdc, NULL, graphics);
|
||||
}
|
||||
|
||||
|
@ -724,6 +726,8 @@ GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **gra
|
|||
{
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %p)\n", hdc, hDevice, graphics);
|
||||
|
||||
if(hDevice != NULL) {
|
||||
FIXME("Don't know how to hadle parameter hDevice\n");
|
||||
return NotImplemented;
|
||||
|
@ -767,6 +771,8 @@ GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics)
|
|||
{
|
||||
GpStatus ret;
|
||||
|
||||
TRACE("(%p, %p)\n", hwnd, graphics);
|
||||
|
||||
if((ret = GdipCreateFromHDC(GetDC(hwnd), graphics)) != Ok)
|
||||
return ret;
|
||||
|
||||
|
@ -778,6 +784,8 @@ GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics)
|
|||
/* FIXME: no icm handling */
|
||||
GpStatus WINGDIPAPI GdipCreateFromHWNDICM(HWND hwnd, GpGraphics **graphics)
|
||||
{
|
||||
TRACE("(%p, %p)\n", hwnd, graphics);
|
||||
|
||||
return GdipCreateFromHWND(hwnd, graphics);
|
||||
}
|
||||
|
||||
|
@ -804,6 +812,8 @@ GpStatus WINGDIPAPI GdipCreateMetafileFromWmf(HMETAFILE hwmf, BOOL delete,
|
|||
HENHMETAFILE hemf;
|
||||
GpStatus retval = GenericError;
|
||||
|
||||
TRACE("(%p, %d, %p, %p)\n", hwmf, delete, placeable, metafile);
|
||||
|
||||
if(!hwmf || !metafile || !placeable)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -877,6 +887,8 @@ GpStatus WINGDIPAPI GdipCreateStreamOnFile(GDIPCONST WCHAR * filename,
|
|||
DWORD dwMode;
|
||||
HRESULT ret;
|
||||
|
||||
TRACE("(%s, %u, %p)\n", debugstr_w(filename), access, stream);
|
||||
|
||||
if(!stream || !filename)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -894,6 +906,8 @@ GpStatus WINGDIPAPI GdipCreateStreamOnFile(GDIPCONST WCHAR * filename,
|
|||
|
||||
GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)
|
||||
{
|
||||
TRACE("(%p)\n", graphics);
|
||||
|
||||
if(!graphics) return InvalidParameter;
|
||||
if(graphics->busy) return ObjectBusy;
|
||||
|
||||
|
@ -914,6 +928,9 @@ GpStatus WINGDIPAPI GdipDrawArc(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
GpPointF points[MAX_ARC_PTS];
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)\n", graphics, pen, x, y,
|
||||
width, height, startAngle, sweepAngle);
|
||||
|
||||
if(!graphics || !pen || width <= 0 || height <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -934,6 +951,9 @@ GpStatus WINGDIPAPI GdipDrawArc(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
GpStatus WINGDIPAPI GdipDrawArcI(GpGraphics *graphics, GpPen *pen, INT x,
|
||||
INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
||||
{
|
||||
TRACE("(%p, %p, %d, %d, %d, %d, %.2f, %.2f)\n", graphics, pen, x, y,
|
||||
width, height, startAngle, sweepAngle);
|
||||
|
||||
return GdipDrawArc(graphics,pen,(REAL)x,(REAL)y,(REAL)width,(REAL)height,startAngle,sweepAngle);
|
||||
}
|
||||
|
||||
|
@ -944,6 +964,9 @@ GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics *graphics, GpPen *pen, REAL x1,
|
|||
GpPointF pt[4];
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)\n", graphics, pen, x1, y1,
|
||||
x2, y2, x3, y3, x4, y4);
|
||||
|
||||
if(!graphics || !pen)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -975,6 +998,9 @@ GpStatus WINGDIPAPI GdipDrawBezierI(GpGraphics *graphics, GpPen *pen, INT x1,
|
|||
GpPointF pt[4];
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %d, %d, %d, %d, %d, %d, %d, %d)\n", graphics, pen, x1, y1,
|
||||
x2, y2, x3, y3, x4, y4);
|
||||
|
||||
if(!graphics || !pen)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1005,6 +1031,8 @@ GpStatus WINGDIPAPI GdipDrawBeziers(GpGraphics *graphics, GpPen *pen,
|
|||
INT i;
|
||||
GpStatus ret;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
if(!graphics || !pen || !points || (count <= 0))
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1031,6 +1059,8 @@ GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics *graphics, GpPen *pen,
|
|||
GpStatus ret;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
if(!graphics || !pen || !points || (count <= 0))
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1056,12 +1086,16 @@ GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics *graphics, GpPen *pen,
|
|||
GpStatus WINGDIPAPI GdipDrawClosedCurve(GpGraphics *graphics, GpPen *pen,
|
||||
GDIPCONST GpPointF *points, INT count)
|
||||
{
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
return GdipDrawClosedCurve2(graphics, pen, points, count, 1.0);
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipDrawClosedCurveI(GpGraphics *graphics, GpPen *pen,
|
||||
GDIPCONST GpPoint *points, INT count)
|
||||
{
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
return GdipDrawClosedCurve2I(graphics, pen, points, count, 1.0);
|
||||
}
|
||||
|
||||
|
@ -1071,6 +1105,8 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
|
|||
GpPointF *ptf;
|
||||
GpStatus stat;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %.2f)\n", graphics, pen, points, count, tension);
|
||||
|
||||
if(!graphics || !pen || !points || count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1100,6 +1136,8 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2I(GpGraphics *graphics, GpPen *pen,
|
|||
GpStatus stat;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %.2f)\n", graphics, pen, points, count, tension);
|
||||
|
||||
if(!points || count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1122,6 +1160,8 @@ GpStatus WINGDIPAPI GdipDrawClosedCurve2I(GpGraphics *graphics, GpPen *pen,
|
|||
GpStatus WINGDIPAPI GdipDrawCurve(GpGraphics *graphics, GpPen *pen,
|
||||
GDIPCONST GpPointF *points, INT count)
|
||||
{
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
return GdipDrawCurve2(graphics,pen,points,count,1.0);
|
||||
}
|
||||
|
||||
|
@ -1132,6 +1172,8 @@ GpStatus WINGDIPAPI GdipDrawCurveI(GpGraphics *graphics, GpPen *pen,
|
|||
GpStatus ret;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
if(!points || count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1160,6 +1202,8 @@ GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics *graphics, GpPen *pen,
|
|||
REAL x1, x2, y1, y2;
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %.2f)\n", graphics, pen, points, count, tension);
|
||||
|
||||
if(!graphics || !pen)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1213,6 +1257,8 @@ GpStatus WINGDIPAPI GdipDrawCurve2I(GpGraphics *graphics, GpPen *pen,
|
|||
GpStatus ret;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %.2f)\n", graphics, pen, points, count, tension);
|
||||
|
||||
if(!points || count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1238,6 +1284,8 @@ GpStatus WINGDIPAPI GdipDrawEllipse(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
GpPointF ptf[2];
|
||||
POINT pti[2];
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, pen, x, y, width, height);
|
||||
|
||||
if(!graphics || !pen)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1264,12 +1312,16 @@ GpStatus WINGDIPAPI GdipDrawEllipse(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
GpStatus WINGDIPAPI GdipDrawEllipseI(GpGraphics *graphics, GpPen *pen, INT x,
|
||||
INT y, INT width, INT height)
|
||||
{
|
||||
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, pen, x, y, width, height);
|
||||
|
||||
return GdipDrawEllipse(graphics,pen,(REAL)x,(REAL)y,(REAL)width,(REAL)height);
|
||||
}
|
||||
|
||||
|
||||
GpStatus WINGDIPAPI GdipDrawImage(GpGraphics *graphics, GpImage *image, REAL x, REAL y)
|
||||
{
|
||||
TRACE("(%p, %p, %.2f, %.2f)\n", graphics, image, x, y);
|
||||
|
||||
/* IPicture::Render uses LONG coords */
|
||||
return GdipDrawImageI(graphics,image,roundr(x),roundr(y));
|
||||
}
|
||||
|
@ -1279,6 +1331,8 @@ GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x,
|
|||
{
|
||||
UINT width, height, srcw, srch;
|
||||
|
||||
TRACE("(%p, %p, %d, %d)\n", graphics, image, x, y);
|
||||
|
||||
if(!graphics || !image)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1311,8 +1365,8 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRect(GpGraphics *graphics, GpImage *image
|
|||
POINT pti[3];
|
||||
REAL dx, dy;
|
||||
|
||||
TRACE("%p %p %p %d %f %f %f %f %d %p %p %p\n", graphics, image, points, count,
|
||||
srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes, callback,
|
||||
TRACE("(%p, %p, %p, %d, %f, %f, %f, %f, %d, %p, %p, %p)\n", graphics, image, points,
|
||||
count, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes, callback,
|
||||
callbackData);
|
||||
|
||||
if(!graphics || !image || !points || count != 3)
|
||||
|
@ -1362,6 +1416,10 @@ GpStatus WINGDIPAPI GdipDrawImagePointsRectI(GpGraphics *graphics, GpImage *imag
|
|||
GpPointF pointsF[3];
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %d, %d, %d, %d, %d, %p, %p, %p)\n", graphics, image, points, count,
|
||||
srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes, callback,
|
||||
callbackData);
|
||||
|
||||
if(!points || count!=3)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1383,6 +1441,10 @@ GpStatus WINGDIPAPI GdipDrawImageRectRect(GpGraphics *graphics, GpImage *image,
|
|||
{
|
||||
GpPointF points[3];
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f, %d, %p, %p, %p)\n)",
|
||||
graphics, image, dstx, dsty, dstwidth, dstheight, srcx, srcy,
|
||||
srcwidth, srcheight, srcUnit, imageattr, callback, callbackData);
|
||||
|
||||
points[0].X = dstx;
|
||||
points[0].Y = dsty;
|
||||
points[1].X = dstx + dstwidth;
|
||||
|
@ -1400,7 +1462,11 @@ GpStatus WINGDIPAPI GdipDrawImageRectRectI(GpGraphics *graphics, GpImage *image,
|
|||
GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback,
|
||||
VOID * callbackData)
|
||||
{
|
||||
GpPointF points[3];
|
||||
GpPointF points[3];
|
||||
|
||||
TRACE("(%p, %p, %d, %d, %d, %d, %d, %d, %d, %d, %d, %p, %p, %p)\n)",
|
||||
graphics, image, dstx, dsty, dstwidth, dstheight, srcx, srcy,
|
||||
srcwidth, srcheight, srcUnit, imageAttributes, callback, callbackData);
|
||||
|
||||
points[0].X = dstx;
|
||||
points[0].Y = dsty;
|
||||
|
@ -1420,6 +1486,8 @@ GpStatus WINGDIPAPI GdipDrawImageRect(GpGraphics *graphics, GpImage *image,
|
|||
GpUnit unit;
|
||||
GpStatus ret;
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, image, x, y, width, height);
|
||||
|
||||
if(!graphics || !image)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1435,6 +1503,8 @@ GpStatus WINGDIPAPI GdipDrawImageRect(GpGraphics *graphics, GpImage *image,
|
|||
GpStatus WINGDIPAPI GdipDrawImageRectI(GpGraphics *graphics, GpImage *image,
|
||||
INT x, INT y, INT width, INT height)
|
||||
{
|
||||
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, image, x, y, width, height);
|
||||
|
||||
return GdipDrawImageRect(graphics, image, (REAL)x, (REAL)y, (REAL)width, (REAL)height);
|
||||
}
|
||||
|
||||
|
@ -1445,6 +1515,8 @@ GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1,
|
|||
GpPointF pt[2];
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, pen, x1, y1, x2, y2);
|
||||
|
||||
if(!pen || !graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1472,6 +1544,8 @@ GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1,
|
|||
GpPointF pt[2];
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, pen, x1, y1, x2, y2);
|
||||
|
||||
if(!pen || !graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1498,6 +1572,8 @@ GpStatus WINGDIPAPI GdipDrawLines(GpGraphics *graphics, GpPen *pen, GDIPCONST
|
|||
INT save_state;
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
if(!pen || !graphics || (count < 2))
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1521,6 +1597,8 @@ GpStatus WINGDIPAPI GdipDrawLinesI(GpGraphics *graphics, GpPen *pen, GDIPCONST
|
|||
GpPointF *ptf = NULL;
|
||||
int i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
if(!pen || !graphics || (count < 2))
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1550,6 +1628,8 @@ GpStatus WINGDIPAPI GdipDrawPath(GpGraphics *graphics, GpPen *pen, GpPath *path)
|
|||
INT save_state;
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %p)\n", graphics, pen, path);
|
||||
|
||||
if(!pen || !graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1571,6 +1651,9 @@ GpStatus WINGDIPAPI GdipDrawPie(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
{
|
||||
INT save_state;
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)\n", graphics, pen, x, y,
|
||||
width, height, startAngle, sweepAngle);
|
||||
|
||||
if(!graphics || !pen)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1590,6 +1673,9 @@ GpStatus WINGDIPAPI GdipDrawPie(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
GpStatus WINGDIPAPI GdipDrawPieI(GpGraphics *graphics, GpPen *pen, INT x,
|
||||
INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
||||
{
|
||||
TRACE("(%p, %p, %d, %d, %d, %d, %.2f, %.2f)\n", graphics, pen, x, y,
|
||||
width, height, startAngle, sweepAngle);
|
||||
|
||||
return GdipDrawPie(graphics,pen,(REAL)x,(REAL)y,(REAL)width,(REAL)height,startAngle,sweepAngle);
|
||||
}
|
||||
|
||||
|
@ -1600,6 +1686,8 @@ GpStatus WINGDIPAPI GdipDrawRectangle(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
GpPointF ptf[4];
|
||||
POINT pti[4];
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, pen, x, y, width, height);
|
||||
|
||||
if(!pen || !graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1629,6 +1717,8 @@ GpStatus WINGDIPAPI GdipDrawRectangle(GpGraphics *graphics, GpPen *pen, REAL x,
|
|||
GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics *graphics, GpPen *pen, INT x,
|
||||
INT y, INT width, INT height)
|
||||
{
|
||||
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, pen, x, y, width, height);
|
||||
|
||||
return GdipDrawRectangle(graphics,pen,(REAL)x,(REAL)y,(REAL)width,(REAL)height);
|
||||
}
|
||||
|
||||
|
@ -1639,6 +1729,8 @@ GpStatus WINGDIPAPI GdipDrawRectangles(GpGraphics *graphics, GpPen *pen,
|
|||
POINT *pti;
|
||||
INT save_state, i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, rects, count);
|
||||
|
||||
if(!graphics || !pen || !rects || count < 1)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1684,6 +1776,8 @@ GpStatus WINGDIPAPI GdipDrawRectanglesI(GpGraphics *graphics, GpPen *pen,
|
|||
GpStatus ret;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, rects, count);
|
||||
|
||||
if(!rects || count<=0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1865,6 +1959,9 @@ GpStatus WINGDIPAPI GdipFillClosedCurve2(GpGraphics *graphics, GpBrush *brush,
|
|||
GpPath *path;
|
||||
GpStatus stat;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %.2f, %d)\n", graphics, brush, points,
|
||||
count, tension, fill);
|
||||
|
||||
if(!graphics || !brush || !points)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1899,6 +1996,9 @@ GpStatus WINGDIPAPI GdipFillClosedCurve2I(GpGraphics *graphics, GpBrush *brush,
|
|||
GpStatus stat;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %.2f, %d)\n", graphics, brush, points,
|
||||
count, tension, fill);
|
||||
|
||||
if(!points || count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1925,6 +2025,8 @@ GpStatus WINGDIPAPI GdipFillEllipse(GpGraphics *graphics, GpBrush *brush, REAL x
|
|||
GpPointF ptf[2];
|
||||
POINT pti[2];
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, brush, x, y, width, height);
|
||||
|
||||
if(!graphics || !brush)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1953,6 +2055,8 @@ GpStatus WINGDIPAPI GdipFillEllipse(GpGraphics *graphics, GpBrush *brush, REAL x
|
|||
GpStatus WINGDIPAPI GdipFillEllipseI(GpGraphics *graphics, GpBrush *brush, INT x,
|
||||
INT y, INT width, INT height)
|
||||
{
|
||||
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, brush, x, y, width, height);
|
||||
|
||||
return GdipFillEllipse(graphics,brush,(REAL)x,(REAL)y,(REAL)width,(REAL)height);
|
||||
}
|
||||
|
||||
|
@ -1961,6 +2065,8 @@ GpStatus WINGDIPAPI GdipFillPath(GpGraphics *graphics, GpBrush *brush, GpPath *p
|
|||
INT save_state;
|
||||
GpStatus retval;
|
||||
|
||||
TRACE("(%p, %p, %p)\n", graphics, brush, path);
|
||||
|
||||
if(!brush || !graphics || !path)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -1996,6 +2102,9 @@ GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x,
|
|||
{
|
||||
INT save_state;
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f, %.2f, %.2f)\n",
|
||||
graphics, brush, x, y, width, height, startAngle, sweepAngle);
|
||||
|
||||
if(!graphics || !brush)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2017,6 +2126,9 @@ GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x,
|
|||
GpStatus WINGDIPAPI GdipFillPieI(GpGraphics *graphics, GpBrush *brush, INT x,
|
||||
INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
|
||||
{
|
||||
TRACE("(%p, %p, %d, %d, %d, %d, %.2f, %.2f)\n",
|
||||
graphics, brush, x, y, width, height, startAngle, sweepAngle);
|
||||
|
||||
return GdipFillPie(graphics,brush,(REAL)x,(REAL)y,(REAL)width,(REAL)height,startAngle,sweepAngle);
|
||||
}
|
||||
|
||||
|
@ -2028,6 +2140,8 @@ GpStatus WINGDIPAPI GdipFillPolygon(GpGraphics *graphics, GpBrush *brush,
|
|||
POINT *pti = NULL;
|
||||
GpStatus retval = Ok;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %d)\n", graphics, brush, points, count, fillMode);
|
||||
|
||||
if(!graphics || !brush || !points || !count)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2070,6 +2184,8 @@ GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics *graphics, GpBrush *brush,
|
|||
POINT *pti = NULL;
|
||||
GpStatus retval = Ok;
|
||||
|
||||
TRACE("(%p, %p, %p, %d, %d)\n", graphics, brush, points, count, fillMode);
|
||||
|
||||
if(!graphics || !brush || !points || !count)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2110,12 +2226,16 @@ end:
|
|||
GpStatus WINGDIPAPI GdipFillPolygon2(GpGraphics *graphics, GpBrush *brush,
|
||||
GDIPCONST GpPointF *points, INT count)
|
||||
{
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, brush, points, count);
|
||||
|
||||
return GdipFillPolygon(graphics, brush, points, count, FillModeAlternate);
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipFillPolygon2I(GpGraphics *graphics, GpBrush *brush,
|
||||
GDIPCONST GpPoint *points, INT count)
|
||||
{
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, brush, points, count);
|
||||
|
||||
return GdipFillPolygonI(graphics, brush, points, count, FillModeAlternate);
|
||||
}
|
||||
|
||||
|
@ -2126,6 +2246,8 @@ GpStatus WINGDIPAPI GdipFillRectangle(GpGraphics *graphics, GpBrush *brush,
|
|||
GpPointF ptf[4];
|
||||
POINT pti[4];
|
||||
|
||||
TRACE("(%p, %p, %.2f, %.2f, %.2f, %.2f)\n", graphics, brush, x, y, width, height);
|
||||
|
||||
if(!graphics || !brush)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2162,6 +2284,8 @@ GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush,
|
|||
GpPointF ptf[4];
|
||||
POINT pti[4];
|
||||
|
||||
TRACE("(%p, %p, %d, %d, %d, %d)\n", graphics, brush, x, y, width, height);
|
||||
|
||||
if(!graphics || !brush)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2197,6 +2321,8 @@ GpStatus WINGDIPAPI GdipFillRectangles(GpGraphics *graphics, GpBrush *brush, GDI
|
|||
GpStatus ret;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, brush, rects, count);
|
||||
|
||||
if(!rects)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2215,6 +2341,8 @@ GpStatus WINGDIPAPI GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush, GD
|
|||
GpStatus ret;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, brush, rects, count);
|
||||
|
||||
if(!rects || count <= 0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2269,6 +2397,8 @@ GpStatus WINGDIPAPI GdipFlush(GpGraphics *graphics, GpFlushIntention intention)
|
|||
GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics *graphics,
|
||||
CompositingMode *mode)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, mode);
|
||||
|
||||
if(!graphics || !mode)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2284,6 +2414,8 @@ GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics *graphics,
|
|||
GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics *graphics,
|
||||
CompositingQuality *quality)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, quality);
|
||||
|
||||
if(!graphics || !quality)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2299,6 +2431,8 @@ GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics *graphics,
|
|||
GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
|
||||
InterpolationMode *mode)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, mode);
|
||||
|
||||
if(!graphics || !mode)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2312,6 +2446,8 @@ GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics,
|
|||
|
||||
GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics *graphics, REAL *scale)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, scale);
|
||||
|
||||
if(!graphics || !scale)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2325,6 +2461,8 @@ GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics *graphics, REAL *scale)
|
|||
|
||||
GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics *graphics, GpUnit *unit)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, unit);
|
||||
|
||||
if(!graphics || !unit)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2340,6 +2478,8 @@ GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics *graphics, GpUnit *unit)
|
|||
GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
|
||||
*mode)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, mode);
|
||||
|
||||
if(!graphics || !mode)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2354,6 +2494,8 @@ GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
|
|||
/* FIXME: Smoothing mode is not used anywhere except the getter/setter. */
|
||||
GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mode)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, mode);
|
||||
|
||||
if(!graphics || !mode)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2369,6 +2511,8 @@ GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *mo
|
|||
GpStatus WINGDIPAPI GdipGetTextRenderingHint(GpGraphics *graphics,
|
||||
TextRenderingHint *hint)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, hint);
|
||||
|
||||
if(!graphics || !hint)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2382,6 +2526,8 @@ GpStatus WINGDIPAPI GdipGetTextRenderingHint(GpGraphics *graphics,
|
|||
|
||||
GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, matrix);
|
||||
|
||||
if(!graphics || !matrix)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2394,6 +2540,8 @@ GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix
|
|||
|
||||
GpStatus WINGDIPAPI GdipIsClipEmpty(GpGraphics *graphics, BOOL *res)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, res);
|
||||
|
||||
if(!graphics || !res)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2524,6 +2672,8 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics,
|
|||
|
||||
GpStatus WINGDIPAPI GdipResetClip(GpGraphics *graphics)
|
||||
{
|
||||
TRACE("(%p)\n", graphics);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2535,6 +2685,8 @@ GpStatus WINGDIPAPI GdipResetClip(GpGraphics *graphics)
|
|||
|
||||
GpStatus WINGDIPAPI GdipResetWorldTransform(GpGraphics *graphics)
|
||||
{
|
||||
TRACE("(%p)\n", graphics);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2567,6 +2719,8 @@ GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState stat
|
|||
GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics *graphics, REAL angle,
|
||||
GpMatrixOrder order)
|
||||
{
|
||||
TRACE("(%p, %.2f, %d)\n", graphics, angle, order);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2592,6 +2746,8 @@ GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state)
|
|||
GpStatus WINGDIPAPI GdipScaleWorldTransform(GpGraphics *graphics, REAL sx,
|
||||
REAL sy, GpMatrixOrder order)
|
||||
{
|
||||
TRACE("(%p, %.2f, %.2f, %d)\n", graphics, sx, sy, order);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2604,6 +2760,8 @@ GpStatus WINGDIPAPI GdipScaleWorldTransform(GpGraphics *graphics, REAL sx,
|
|||
GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics *graphics,
|
||||
CompositingMode mode)
|
||||
{
|
||||
TRACE("(%p, %d)\n", graphics, mode);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2618,6 +2776,8 @@ GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics *graphics,
|
|||
GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics *graphics,
|
||||
CompositingQuality quality)
|
||||
{
|
||||
TRACE("(%p, %d)\n", graphics, quality);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2632,6 +2792,8 @@ GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics *graphics,
|
|||
GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
|
||||
InterpolationMode mode)
|
||||
{
|
||||
TRACE("(%p, %d)\n", graphics, mode);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2645,6 +2807,8 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
|
|||
|
||||
GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics *graphics, REAL scale)
|
||||
{
|
||||
TRACE("(%p, %.2f)\n", graphics, scale);
|
||||
|
||||
if(!graphics || (scale <= 0.0))
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2658,6 +2822,8 @@ GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics *graphics, REAL scale)
|
|||
|
||||
GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics *graphics, GpUnit unit)
|
||||
{
|
||||
TRACE("(%p, %d)\n", graphics, unit);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2675,6 +2841,8 @@ GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics *graphics, GpUnit unit)
|
|||
GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
|
||||
mode)
|
||||
{
|
||||
TRACE("(%p, %d)\n", graphics, mode);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2688,6 +2856,8 @@ GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode
|
|||
|
||||
GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mode)
|
||||
{
|
||||
TRACE("(%p, %d)\n", graphics, mode);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2702,6 +2872,8 @@ GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode mod
|
|||
GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics *graphics,
|
||||
TextRenderingHint hint)
|
||||
{
|
||||
TRACE("(%p, %d)\n", graphics, hint);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2715,6 +2887,8 @@ GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics *graphics,
|
|||
|
||||
GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, matrix);
|
||||
|
||||
if(!graphics || !matrix)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2728,6 +2902,8 @@ GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics *graphics, GpMatrix *matrix
|
|||
GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx,
|
||||
REAL dy, GpMatrixOrder order)
|
||||
{
|
||||
TRACE("(%p, %.2f, %.2f, %d)\n", graphics, dx, dy, order);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2786,6 +2962,8 @@ GpStatus WINGDIPAPI GdipDrawPolygon(GpGraphics *graphics,GpPen *pen,GDIPCONST Gp
|
|||
INT save_state;
|
||||
POINT *pti;
|
||||
|
||||
TRACE("(%p, %p, %d)\n", graphics, points, count);
|
||||
|
||||
if(!graphics || !pen || count<=0)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2813,6 +2991,8 @@ GpStatus WINGDIPAPI GdipDrawPolygonI(GpGraphics *graphics,GpPen *pen,GDIPCONST G
|
|||
GpPointF *ptf;
|
||||
INT i;
|
||||
|
||||
TRACE("(%p, %p, %p, %d)\n", graphics, pen, points, count);
|
||||
|
||||
if(count<=0) return InvalidParameter;
|
||||
ptf = GdipAlloc(sizeof(GpPointF) * count);
|
||||
|
||||
|
@ -2829,6 +3009,8 @@ GpStatus WINGDIPAPI GdipDrawPolygonI(GpGraphics *graphics,GpPen *pen,GDIPCONST G
|
|||
|
||||
GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics *graphics, REAL* dpi)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, dpi);
|
||||
|
||||
if(!graphics || !dpi)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2842,6 +3024,8 @@ GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics *graphics, REAL* dpi)
|
|||
|
||||
GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics *graphics, REAL* dpi)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, dpi);
|
||||
|
||||
if(!graphics || !dpi)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2859,6 +3043,8 @@ GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST G
|
|||
GpMatrix m;
|
||||
GpStatus ret;
|
||||
|
||||
TRACE("(%p, %p, %d)\n", graphics, matrix, order);
|
||||
|
||||
if(!graphics || !matrix)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2876,6 +3062,8 @@ GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST G
|
|||
|
||||
GpStatus WINGDIPAPI GdipGetDC(GpGraphics *graphics, HDC *hdc)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, hdc);
|
||||
|
||||
if(!graphics || !hdc)
|
||||
return InvalidParameter;
|
||||
|
||||
|
@ -2890,6 +3078,8 @@ GpStatus WINGDIPAPI GdipGetDC(GpGraphics *graphics, HDC *hdc)
|
|||
|
||||
GpStatus WINGDIPAPI GdipReleaseDC(GpGraphics *graphics, HDC hdc)
|
||||
{
|
||||
TRACE("(%p, %p)\n", graphics, hdc);
|
||||
|
||||
if(!graphics)
|
||||
return InvalidParameter;
|
||||
|
||||
|
|
Loading…
Reference in New Issue