📄 gdiplusgraphics.h
字号:
return dpi;
}
Status TransformPoints(IN CoordinateSpace destSpace,
IN CoordinateSpace srcSpace,
IN OUT PointF* pts,
IN INT count) const
{
return SetStatus(DllExports::GdipTransformPoints(nativeGraphics,
destSpace,
srcSpace,
pts,
count));
}
Status TransformPoints(IN CoordinateSpace destSpace,
IN CoordinateSpace srcSpace,
IN OUT Point* pts,
IN INT count) const
{
return SetStatus(DllExports::GdipTransformPointsI(nativeGraphics,
destSpace,
srcSpace,
pts,
count));
}
//------------------------------------------------------------------------
// GetNearestColor (for <= 8bpp surfaces). Note: Alpha is ignored.
//------------------------------------------------------------------------
Status GetNearestColor(IN OUT Color* color) const
{
if (color == NULL)
{
return SetStatus(InvalidParameter);
}
ARGB argb = color->GetValue();
Status status = SetStatus(DllExports::GdipGetNearestColor(nativeGraphics, &argb));
color->SetValue(argb);
return status;
}
Status DrawLine(IN const Pen* pen,
IN REAL x1,
IN REAL y1,
IN REAL x2,
IN REAL y2)
{
return SetStatus(DllExports::GdipDrawLine(nativeGraphics,
pen->nativePen, x1, y1, x2,
y2));
}
Status DrawLine(IN const Pen* pen,
IN const PointF& pt1,
IN const PointF& pt2)
{
return DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y);
}
Status DrawLines(IN const Pen* pen,
IN const PointF* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawLines(nativeGraphics,
pen->nativePen,
points, count));
}
Status DrawLine(IN const Pen* pen,
IN INT x1,
IN INT y1,
IN INT x2,
IN INT y2)
{
return SetStatus(DllExports::GdipDrawLineI(nativeGraphics,
pen->nativePen,
x1,
y1,
x2,
y2));
}
Status DrawLine(IN const Pen* pen,
IN const Point& pt1,
IN const Point& pt2)
{
return DrawLine(pen,
pt1.X,
pt1.Y,
pt2.X,
pt2.Y);
}
Status DrawLines(IN const Pen* pen,
IN const Point* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawLinesI(nativeGraphics,
pen->nativePen,
points,
count));
}
Status DrawArc(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::GdipDrawArc(nativeGraphics,
pen->nativePen,
x,
y,
width,
height,
startAngle,
sweepAngle));
}
Status DrawArc(IN const Pen* pen,
IN const RectF& rect,
IN REAL startAngle,
IN REAL sweepAngle)
{
return DrawArc(pen, rect.X, rect.Y, rect.Width, rect.Height,
startAngle, sweepAngle);
}
Status DrawArc(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::GdipDrawArcI(nativeGraphics,
pen->nativePen,
x,
y,
width,
height,
startAngle,
sweepAngle));
}
Status DrawArc(IN const Pen* pen,
IN const Rect& rect,
IN REAL startAngle,
IN REAL sweepAngle)
{
return DrawArc(pen,
rect.X,
rect.Y,
rect.Width,
rect.Height,
startAngle,
sweepAngle);
}
Status DrawBezier(IN const Pen* pen,
IN REAL x1,
IN REAL y1,
IN REAL x2,
IN REAL y2,
IN REAL x3,
IN REAL y3,
IN REAL x4,
IN REAL y4)
{
return SetStatus(DllExports::GdipDrawBezier(nativeGraphics,
pen->nativePen, x1, y1,
x2, y2, x3, y3, x4, y4));
}
Status DrawBezier(IN const Pen* pen,
IN const PointF& pt1,
IN const PointF& pt2,
IN const PointF& pt3,
IN const PointF& pt4)
{
return DrawBezier(pen,
pt1.X,
pt1.Y,
pt2.X,
pt2.Y,
pt3.X,
pt3.Y,
pt4.X,
pt4.Y);
}
Status DrawBeziers(IN const Pen* pen,
IN const PointF* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawBeziers(nativeGraphics,
pen->nativePen,
points,
count));
}
Status DrawBezier(IN const Pen* pen,
IN INT x1,
IN INT y1,
IN INT x2,
IN INT y2,
IN INT x3,
IN INT y3,
IN INT x4,
IN INT y4)
{
return SetStatus(DllExports::GdipDrawBezierI(nativeGraphics,
pen->nativePen,
x1,
y1,
x2,
y2,
x3,
y3,
x4,
y4));
}
Status DrawBezier(IN const Pen* pen,
IN const Point& pt1,
IN const Point& pt2,
IN const Point& pt3,
IN const Point& pt4)
{
return DrawBezier(pen,
pt1.X,
pt1.Y,
pt2.X,
pt2.Y,
pt3.X,
pt3.Y,
pt4.X,
pt4.Y);
}
Status DrawBeziers(IN const Pen* pen,
IN const Point* points,
IN INT count)
{
return SetStatus(DllExports::GdipDrawBeziersI(nativeGraphics,
pen->nativePen,
points,
count));
}
Status DrawRectangle(IN const Pen* pen,
IN const RectF& rect)
{
return DrawRectangle(pen, rect.X, rect.Y, rect.Width, rect.Height);
}
Status DrawRectangle(IN const Pen* pen,
IN REAL x,
IN REAL y,
IN REAL width,
IN REAL height)
{
return SetStatus(DllExports::GdipDrawRectangle(nativeGraphics,
pen->nativePen, x, y,
width, height));
}
Status DrawRectangles(IN const Pen* pen,
IN const RectF* rects,
IN INT count)
{
return SetStatus(DllExports::GdipDrawRectangles(nativeGraphics,
pen->nativePen,
rects, count));
}
Status DrawRectangle(IN const Pen* pen,
IN const Rect& rect)
{
return DrawRectangle(pen,
rect.X,
rect.Y,
rect.Width,
rect.Height);
}
Status DrawRectangle(IN const Pen* pen,
IN INT x,
IN INT y,
IN INT width,
IN INT height)
{
return SetStatus(DllExports::GdipDrawRectangleI(nativeGraphics,
pen->nativePen,
x,
y,
width,
height));
}
Status DrawRectangles(IN const Pen* pen,
IN const Rect* rects,
IN INT count)
{
return SetStatus(DllExports::GdipDrawRectanglesI(nativeGraphics,
pen->nativePen,
rects,
count));
}
Status DrawEllipse(IN const Pen* pen,
IN const RectF& rect)
{
return DrawEllipse(pen, rect.X, rect.Y, rect.Width, rect.Height);
}
Status DrawEllipse(IN const Pen* pen,
IN REAL x,
IN REAL y,
IN REAL width,
IN REAL height)
{
return SetStatus(DllExports::GdipDrawEllipse(nativeGraphics,
pen->nativePen,
x,
y,
width,
height));
}
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,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -