📄 gdiplusgraphics.h
字号:
IN REAL width,
IN REAL height)
{
return SetStatus(DllExports::GdipDrawEllipse(nativeGraphics,
pen->nativePen,
x,
y,
width,
height));
}
// integer version
Status DrawEllipse(IN const Pen* pen,
IN const Rect& rect)
{
return DrawEllipse(pen,
rect.X,
rect.Y,
rect.Width,
rect.Height);
}
Status DrawEllipse(IN const Pen* pen,
IN INT x,
IN INT y,
IN INT width,
IN INT height)
{
return SetStatus(DllExports::GdipDrawEllipseI(nativeGraphics,
pen->nativePen,
x,
y,
width,
height));
}
// floating point version
Status DrawPie(IN const Pen* pen,
IN const RectF& rect,
IN REAL startAngle,
IN REAL sweepAngle)
{
return DrawPie(pen,
rect.X,
rect.Y,
rect.Width,
rect.Height,
startAngle,
sweepAngle);
}
Status DrawPie(IN const Pen* pen,
IN REAL x,
IN REAL y,
IN REAL width,
IN REAL height,
IN REAL startAngle,
IN REAL sweepAngle)
{
return SetStatus(DllExports::GdipDrawPie(nativeGraphics,
pen->nativePen,
x,
y,
width,
height,
startAngle,
sweepAngle));
}
// integer point version
Status DrawPie(IN const Pen* pen,
IN const Rect& rect,
IN REAL startAngle,
IN REAL sweepAngle)
{
return DrawPie(pen,
rect.X,
rect.Y,
rect.Width,
rect.Height,
startAngle,
sweepAngle);
}
Status DrawPie(IN const Pen* pen,
IN INT x,
IN INT y,
IN INT width,
IN INT height,
IN REAL startAngle,
IN REAL sweepAngle)
{
return SetStatus(DllExports::GdipDrawPieI(nativeGraphics,
pen->nativePen,
x,
y,
width,
height,
startAngle,
sweepAngle));
}
// float version
Status DrawPolygon(IN const Pen* pen,
IN const PointF* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawPolygon(nativeGraphics,
pen->nativePen,
points,
count));
}
// integer version
Status DrawPolygon(IN const Pen* pen,
IN const Point* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawPolygonI(nativeGraphics,
pen->nativePen,
points,
count));
}
// float version
Status DrawPath(IN const Pen* pen,
IN const GraphicsPath* path)
{
return SetStatus(DllExports::GdipDrawPath(nativeGraphics,
pen ? pen->nativePen : NULL,
path ? path->nativePath : NULL));
}
// float version
Status DrawCurve(IN const Pen* pen,
IN const PointF* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawCurve(nativeGraphics,
pen->nativePen, points,
count));
}
Status DrawCurve(IN const Pen* pen,
IN const PointF* points,
IN INT count,
IN REAL tension)
{
return SetStatus(DllExports::GdipDrawCurve2(nativeGraphics,
pen->nativePen, points,
count, tension));
}
Status DrawCurve(IN const Pen* pen,
IN const PointF* points,
IN INT count,
IN INT offset,
IN INT numberOfSegments,
IN REAL tension = 0.5f)
{
return SetStatus(DllExports::GdipDrawCurve3(nativeGraphics,
pen->nativePen, points,
count, offset,
numberOfSegments, tension));
}
// integer version
Status DrawCurve(IN const Pen* pen,
IN const Point* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawCurveI(nativeGraphics,
pen->nativePen,
points,
count));
}
Status DrawCurve(IN const Pen* pen,
IN const Point* points,
IN INT count,
IN REAL tension)
{
return SetStatus(DllExports::GdipDrawCurve2I(nativeGraphics,
pen->nativePen,
points,
count,
tension));
}
Status DrawCurve(IN const Pen* pen,
IN const Point* points,
IN INT count,
IN INT offset,
IN INT numberOfSegments,
IN REAL tension = 0.5f)
{
return SetStatus(DllExports::GdipDrawCurve3I(nativeGraphics,
pen->nativePen,
points,
count,
offset,
numberOfSegments,
tension));
}
// float version
Status DrawClosedCurve(IN const Pen* pen,
IN const PointF* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawClosedCurve(nativeGraphics,
pen->nativePen,
points, count));
}
Status DrawClosedCurve(IN const Pen *pen,
IN const PointF* points,
IN INT count,
IN REAL tension)
{
return SetStatus(DllExports::GdipDrawClosedCurve2(nativeGraphics,
pen->nativePen,
points, count,
tension));
}
// integer version
Status DrawClosedCurve(IN const Pen* pen,
IN const Point* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawClosedCurveI(nativeGraphics,
pen->nativePen,
points,
count));
}
Status DrawClosedCurve(IN const Pen *pen,
IN const Point* points,
IN INT count,
IN REAL tension)
{
return SetStatus(DllExports::GdipDrawClosedCurve2I(nativeGraphics,
pen->nativePen,
points,
count,
tension));
}
Status Clear(IN const Color &color)
{
return SetStatus(DllExports::GdipGraphicsClear(
nativeGraphics,
color.GetValue()));
}
// float version
Status FillRectangle(IN const Brush* brush,
IN const RectF& rect)
{
return FillRectangle(brush, rect.X, rect.Y, rect.Width, rect.Height);
}
Status FillRectangle(IN const Brush* brush,
IN REAL x,
IN REAL y,
IN REAL width,
IN REAL height)
{
return SetStatus(DllExports::GdipFillRectangle(nativeGraphics,
brush->nativeBrush, x, y,
width, height));
}
Status FillRectangles(IN const Brush* brush,
IN const RectF* rects,
IN INT count)
{
return SetStatus(DllExports::GdipFillRectangles(nativeGraphics,
brush->nativeBrush,
rects, count));
}
// integer version
Status FillRectangle(IN const Brush* brush,
IN const Rect& rect)
{
return FillRectangle(brush,
rect.X,
rect.Y,
rect.Width,
rect.Height);
}
Status FillRectangle(IN const Brush* brush,
IN INT x,
IN INT y,
IN INT width,
IN INT height)
{
return SetStatus(DllExports::GdipFillRectangleI(nativeGraphics,
brush->nativeBrush,
x,
y,
width,
height));
}
Status FillRectangles(IN const Brush* brush,
IN const Rect* rects,
IN INT count)
{
return SetStatus(DllExports::GdipFillRectanglesI(nativeGraphics,
brush->nativeBrush,
rects,
count));
}
// float version
Status FillPolygon(IN const Brush* brush,
IN const PointF* points,
IN INT count)
{
return FillPolygon(brush, points, count, FillModeAlternate);
}
Status FillPolygon(IN const Brush* brush,
IN const PointF* points,
IN INT count,
IN FillMode fillMode)
{
return SetStatus(DllExports::GdipFillPolygon(nativeGraphics,
brush->nativeBrush,
points, count, fillMode));
}
// integer version
Status FillPolygon(IN const Brush* brush,
IN const Point* points,
IN INT count)
{
return FillPolygon(brush, points, count, FillModeAlternate);
}
Status FillPolygon(IN const Brush* brush,
IN const Point* points,
IN INT count,
IN FillMode fillMode)
{
return SetStatus(DllExports::GdipFillPolygonI(nativeGraphics,
brush->nativeBrush,
points, count,
fillMode));
}
// float version
Status FillEllipse(IN const Brush* brush,
IN const RectF& rect)
{
return FillEllipse(brush, rect.X, rect.Y, rect.Width, rect.Height);
}
Status FillEllipse(IN const Brush* brush,
IN REAL x,
IN REAL y,
IN REAL width,
IN REAL height)
{
return SetStatus(DllExports::GdipFillEllipse(nativeGraphics,
brush->nativeBrush, x, y,
width, height));
}
// integer version
Status FillEllipse(IN const Brush* brush,
IN const Rect& rect)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -