图形函数

Windows GDI+ 公开一个由大约 600 个函数组成的平面 API,这些函数在 Gdiplus.dll 中实现并在 Gdiplusflat.h 中声明。 GDI+ 平面 API 中的函数由大约 40 个 C++ 类的集合包装。 建议不要直接调用平面 API 中的函数。 每当调用 GDI+ 时,都应该通过调用 C++ 包装器提供的方法和函数来执行此操作。 Microsoft 产品支持服务不会为直接调用平面 API 的代码提供支持。 有关使用这些包装器方法的详细信息,请参阅 GDI+ 平面 API

以下平面 API 函数由 Graphics C++ 类包装。

图形函数和相应的包装器方法

平面函数 包装器方法 备注
GpStatus WINGDIPAPI GdipFlush (GpGraphics *graphics, GpFlushIntention 意向)
VOID Graphics::Flush (IN FlushIntention 意向 = FlushIntentionFlush) 刷新所有挂起的图形操作。
GpStatus WINGDIPAPI GdipCreateFromHDC (HDC hdc, GpGraphics **graphics)
Graphics::Graphics (IN HDC hdc) 创建与指定设备上下文关联的 Graphics 对象。
GpStatus WINGDIPAPI GdipCreateFromHDC2 (HDC hdc, HANDLE hDevice, GpGraphics **graphics)
Graphics::Graphics (IN HDC hdc、IN HANDLE hdevice) 创建与指定设备上下文和指定设备关联的 Graphics 对象。
GpStatus WINGDIPAPI GdipCreateFromHWND (HWND hwnd, GpGraphics **graphics)
Graphics::Graphics (IN HWND hwnd,IN BOOL icm = FALSE) 创建与指定窗口关联的 Graphics 对象。
GpStatus WINGDIPAPI GdipCreateFromHWNDICM (HWND hwnd, GpGraphics **graphics)
Graphics::Graphics (IN HWND hwnd,IN BOOL icm = FALSE) 此函数使用图像颜色管理 (ICM) 。 当 Graphics::Graphics 构造函数的 icm 参数设置为 TRUE 时,将调用它。
GpStatus WINGDIPAPI GdipDeleteGraphics (GpGraphics *graphics)
不由包装器方法调用。
未实现。
GpStatus WINGDIPAPI GdipGetDC (GpGraphics* graphics, HDC * hdc)
HDC Graphics::GetHDC () 获取与此 Graphics 对象关联的设备上下文的句柄。
GpStatus WINGDIPAPI GdipReleaseDC (GpGraphics* graphics, HDC hdc)
VOID Graphics::ReleaseHDC (IN HDC hdc) 释放通过之前对此 Graphics 对象的 Graphics::GetHDC 方法的调用获取 的设备 上下文句柄。
GpStatus WINGDIPAPI GdipSetCompositingMode (GpGraphics *graphics,CompositingMode compositingMode)
Status Graphics::SetCompositingMode (IN CompositingMode) 设置此 Graphics 对象的合成模式。
GpStatus WINGDIPAPI GdipGetCompositingMode (GpGraphics *graphics, CompositingMode *compositingMode)
Status Graphics::GetCompositingMode () const 获取当前为此 Graphics 对象设置的合成模式。
GpStatus WINGDIPAPI GdipSetRenderingOrigin (GpGraphics *graphics, INT x, INT y)
状态图形::SetRenderingOrigin (INT x,IN INT y) 设置此 Graphics 对象的呈现原点。 呈现原点用于设置每像素 8 位和每像素 16 位抖动的抖动原点,还用于设置阴影画笔的原点。 语法
GpStatus WINGDIPAPI GdipGetRenderingOrigin (GpGraphics *graphics, INT *x, INT *y)
状态图形::GetRenderingOrigin (OUT INT *x, OUT INT *y) const 获取当前为此 Graphics 对象设置的呈现原点。 呈现原点用于设置每像素 8 位和每像素 16 位抖动的抖动原点,还用于设置阴影画笔的原点。
GpStatus WINGDIPAPI GdipSetCompositingQuality (GpGraphics *graphics, CompositingQuality compositingQuality)
Status Graphics::SetCompositingQuality (IN CompositingQuality) 设置此 Graphics 对象的合成质量。
GpStatus WINGDIPAPI GdipGetCompositingQuality (GpGraphics *graphics, CompositingQuality *compositingQuality)
CompositingQuality Graphics::GetCompositingQuality () const 获取当前为此 Graphics 对象设置的合成质量。
GpStatus WINGDIPAPI GdipSetSmoothingMode (GpGraphics *graphics, SmoothingMode smoothingMode)
Status Graphics::SetSmoothingMode (IN SmoothingMode) 设置 Graphics 对象的呈现质量。
GpStatus WINGDIPAPI GdipGetSmoothingMode (GpGraphics *graphics, SmoothingMode *smoothingMode)
SmoothingMode Graphics::GetSmoothingMode () const 确定是否将平滑 (抗锯齿) 应用于 Graphics 对象。
GpStatus WINGDIPAPI GdipSetPixelOffsetMode (GpGraphics* graphics,PixelOffsetMode pixelOffsetMode)
状态图形::SetPixelOffsetMode (IN PixelOffsetMode pixelOffsetMode) 设置此 Graphics 对象的像素偏移模式。
GpStatus WINGDIPAPI GdipGetPixelOffsetMode (GpGraphics *graphics,PixelOffsetMode *pixelOffsetMode)
PixelOffsetMode Graphics::GetPixelOffsetMode () const 获取当前为此 Graphics 对象设置的像素偏移模式。
GpStatus WINGDIPAPI GdipSetTextRenderingHint (GpGraphics *graphics,TextRenderingHint 模式)
Status Graphics::SetTextRenderingHint (IN TextRenderingHint newMode) 设置此 Graphics 对象的文本呈现模式。
GpStatus WINGDIPAPI GdipGetTextRenderingHint (GpGraphics *graphics, TextRenderingHint *mode)
TextRenderingHint Graphics::GetTextRenderingHint () const 获取当前为此 Graphics 对象设置的文本呈现模式。
GpStatus WINGDIPAPI GdipSetTextContrast (GpGraphics *graphics, UINT contrast)
状态图形::SetTextContrast (IN UINT 对比度) 设置此 Graphics 对象的对比度值。 对比度值用于抗锯齿文本。
GpStatus WINGDIPAPI GdipGetTextContrast (GpGraphics *graphics, UINT * contrast)
UINT Graphics::GetTextContrast () const 获取当前为此 Graphics 对象设置的对比度值。 对比度值用于抗锯齿文本。
GpStatus WINGDIPAPI GdipSetInterpolationMode (GpGraphics *graphics,InterpolationMode interpolationMode)
Status Graphics::SetInterpolationMode (IN InterpolationMode interpolationMode) 设置此 Graphics 对象的内插模式。 内插模式确定缩放或旋转图像时使用的算法。
GpStatus WINGDIPAPI GdipGraphicsSetAbort (GpGraphics *pGraphics, GdiplusAbort *pIAbort)
不由包装器方法调用。
未实现。
GpStatus WINGDIPAPI GdipGetInterpolationMode (GpGraphics *graphics, InterpolationMode *interpolationMode)
InterpolationMode Graphics::GetInterpolationMode () const 获取当前为此 Graphics 对象设置的内插模式。 内插模式确定缩放或旋转图像时使用的算法。
GpStatus WINGDIPAPI GdipSetWorldTransform (GpGraphics *graphics, GpMatrix *matrix)
Status Graphics::SetTransform (IN const Matrix* matrix) 设置此 Graphics 对象的世界转换。
GpStatus WINGDIPAPI GdipResetWorldTransform (GpGraphics *graphics)
状态图形::ResetTransform () 将此 Graphics 对象的世界转换矩阵设置为标识矩阵。
GpStatus WINGDIPAPI GdipMultiplyWorldTransform (GpGraphics *graphics, GDIPCONST GpMatrix *matrix, GpMatrixOrder order)
状态图形::MultiplyTransform (IN const Matrix* matrix, IN MatrixOrder 顺序 = MatrixOrderPrepend) 汇报此图形对象的世界转换矩阵与自身和另一个矩阵的乘积。
GpStatus WINGDIPAPI GdipTranslateWorldTransform (GpGraphics *graphics, REAL dx, REAL dy, GpMatrixOrder order)
状态图形::TranslateTransform (IN REAL dx, IN REAL dy, IN MatrixOrder 顺序 = MatrixOrderPrepend) 汇报此 Graphics 对象的世界转换矩阵及其本身的乘积和转换矩阵。
GpStatus WINGDIPAPI GdipScaleWorldTransform (GpGraphics *graphics, REAL sx, REAL sy, GpMatrixOrder order)
状态图形::ScaleTransform (IN REAL sx、IN REAL sy、IN MatrixOrder 顺序 = MatrixOrderPrepend) 汇报此 Graphics 对象的世界转换矩阵及其本身的乘积和缩放矩阵。
GpStatus WINGDIPAPI GdipRotateWorldTransform (GpGraphics *graphics, REAL angle, GpMatrixOrder order)
状态图形::RotateTransform (IN REAL 角度,IN MatrixOrder 顺序 = MatrixOrderPrepend) 汇报具有自身乘积和旋转矩阵的此 Graphics 对象的世界转换矩阵。
GpStatus WINGDIPAPI GdipGetWorldTransform (GpGraphics *graphics, GpMatrix *matrix)
状态图形::GetTransform (OUT Matrix* 矩阵) const 获取此 Graphics 对象的世界转换矩阵。
GpStatus WINGDIPAPI GdipResetPageTransform (GpGraphics *graphics)
包装器方法不调用。
此函数将页面转换矩阵重置为标识。
GpStatus WINGDIPAPI GdipGetPageUnit (GpGraphics *graphics, GpUnit *unit)
Unit Graphics::GetPageUnit () const 获取当前为此 Graphics 对象设置的度量单位。
GpStatus WINGDIPAPI GdipGetPageScale (GpGraphics *graphics, REAL *scale)
REAL Graphics::GetPageScale () const 获取当前为此 Graphics 对象的页面转换设置的缩放因子。 页面转换将页面坐标转换为设备坐标。
GpStatus WINGDIPAPI GdipSetPageUnit (GpGraphics *graphics, GpUnit unit)
状态图形::SetPageUnit (IN 单元) 设置此 Graphics 对象的度量单位。 页面单元属于页面转换,该转换将页面坐标转换为设备坐标。
GpStatus WINGDIPAPI GdipSetPageScale (GpGraphics *graphics, REAL scale)
状态图形::SetPageScale (实际缩放) 设置此 Graphics 对象的页面转换比例系数。 页面转换将页面坐标转换为设备坐标。
GpStatus WINGDIPAPI GdipGetDpiX (GpGraphics *graphics, REAL* dpi)
REAL Graphics::GetDpiX () const 获取与此 Graphics 对象关联的显示设备的水平分辨率(以点/英寸为单位)。
GpStatus WINGDIPAPI GdipGetDpiY (GpGraphics *graphics, REAL* dpi)
REAL Graphics::GetDpiY () const 获取与此 Graphics 对象关联的显示设备的垂直分辨率(以每英寸点为单位)。
GpStatus WINGDIPAPI GdipTransformPoints (GpGraphics *graphics, GpCoordinateSpace destSpace, GpCoordinateSpace srcSpace, GpPointF *points, INT count)
包装器方法不调用。
未实现。
GpStatus WINGDIPAPI GdipTransformPointsI (GpGraphics *graphics, GpCoordinateSpace destSpace, GpCoordinateSpace srcSpace, GpPoint *points, INT count)
Status Graphics::TransformPoints (IN CoordinateSpace destSpace, IN CoordinateSpace srcSpace, IN OUT Point* pts, IN IN INT count) const 将点数组从一个坐标空间转换为另一个坐标空间。 转换基于此 Graphics 对象的当前世界和页面转换。
GpStatus WINGDIPAPI GdipGetNearestColor (GpGraphics *graphics, ARGB* argb)
状态图形::GetNearestColor (IN OUT Color* color) const 获取与传入的颜色最接近的颜色。 此方法适用于每像素 8 位或具有 8 位调色板的较低显示设备。
HPALETTE WINGDIPAPI GdipCreateHalftonePalette ()
static HPALETTE Graphics::GetHalftonePalette () 获取 Windows 半色调调色板。
GpStatus WINGDIPAPI GdipDrawLine (GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, REAL x2, REAL y2)
状态图形::D rawLine (IN const Pen* 触控笔、IN REAL x1、IN REAL y1、IN REAL x2、IN REAL y2) 绘制连接两个点的线条。
GpStatus WINGDIPAPI GdipDrawLineI (GpGraphics *graphics, GpPen *pen, INT x1, INT y1, INT x2, INT y2)
状态图形::D rawLine (IN const Pen* 触控笔、INT x1、INT y1、IN INT x2、INT y2) 绘制连接两个点的线条。
GpStatus WINGDIPAPI GdipDrawLines (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)
状态图形::D rawLines (in const Pen* pen, IN const PointF* points, IN INT count) 绘制连接线的序列。
GpStatus WINGDIPAPI GdipDrawLinesI (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)
状态图形:DrawLines (in const Pen* pen, IN const Point* point, IN IN INT count) 绘制连接线的序列。
GpStatus WINGDIPAPI GdipDrawArc (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
状态图形::D rawArc (IN const Pen* pen, IN REAL x, IN REAL y, IN REAL width, IN REAL height, IN REAL startAngle, IN REAL sweepAngle) 绘制弧线。弧线是椭圆的一部分。
GpStatus WINGDIPAPI GdipDrawArcI (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
状态图形::D rawArc (IN const Pen* 触控笔,IN INT x,IN INT y,IN INT width,IN INT height,IN REAL startAngle,IN REAL sweepAngle) 绘制弧线。弧线是椭圆的一部分。
GpStatus WINGDIPAPI GdipDrawBezier (GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4)
状态图形::D rawBezier (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) 绘制贝塞尔样条。
GpStatus WINGDIPAPI GdipDrawBezierI (GpGraphics *graphics, GpPen *pen, INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4)
状态图形::D rawBezier (IN const Pen* pen, IN INT x1, IN INT y1, IN INT x2, INT y2, IN INT x3, INT y3, INT x4, INT y4) 绘制贝塞尔样条。
GpStatus WINGDIPAPI GdipDrawBeziers (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)
状态图形::D rawBeziers (IN const Pen* pen, IN const PointF* points, IN INT count) 绘制连接的贝塞尔样条序列。
GpStatus WINGDIPAPI GdipDrawBeziersI (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)
状态图形::D rawBeziers (in const Pen* pen, IN const Point* points, IN INT count) 绘制连接的贝塞尔样条序列。
GpStatus WINGDIPAPI GdipDrawRectangle (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height)
状态图形:DrawRectangle (IN const Pen* pen, IN REAL x, IN REAL y, IN REAL width, IN REAL height) 绘制矩形。
GpStatus WINGDIPAPI GdipDrawRectangleI (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height)
状态图形::D rawRectangle (IN const Pen* 触控笔,IN INT x,IN INT y,IN INT 宽度,IN INT 高度) 绘制矩形。
GpStatus WINGDIPAPI GdipDrawRectangles (GpGraphics *graphics, GpPen *pen, GDIPCONST GpRectF *rects, INT count)
状态图形::D rawRectangles (IN const Pen* pen, IN const RectF* rects, IN IN INT count) 绘制一系列矩形。
GpStatus WINGDIPAPI GdipDrawRectanglesI (GpGraphics *graphics, GpPen *pen, GDIPCONST GpRect *rects, INT count)
状态图形::D rawRectangles (IN const Pen* pen, IN const Rect* rects, IN INT count) 绘制一系列矩形。
GpStatus WINGDIPAPI GdipDrawEllipse (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height)
状态图形::D rawEllipse (IN const Pen* 触控笔、IN REAL x、IN REAL y、IN REAL width、IN REAL height) 绘制椭圆形。
GpStatus WINGDIPAPI GdipDrawEllipseI (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height)
状态图形::D rawEllipse (IN const Pen* 触控笔、INT x、IN INT y、IN INT 宽度、INT 高度) 绘制椭圆形。
GpStatus WINGDIPAPI GdipDrawPie (GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
状态图形::D rawPie (IN const Pen* pen, IN REAL x, IN REAL y, IN REAL width, IN REAL height, IN REAL startAngle, IN REAL sweepAngle) 绘制饼图。
GpStatus WINGDIPAPI GdipDrawPieI (GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
状态图形::D rawPie (IN const Pen* 触控笔,IN INT x,IN INT y,IN INT width,INT height,IN REAL startAngle,IN REAL sweepAngle) 绘制饼图。
GpStatus WINGDIPAPI GdipDrawPolygon (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)
状态图形::D rawPolygon (in const Pen* pen, IN const PointF* points, IN INT count) 绘制多边形。
GpStatus WINGDIPAPI GdipDrawPolygonI (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)
状态图形::D rawPolygon (in const Pen* pen, IN const Point* points, IN INT count) 绘制多边形。
GpStatus WINGDIPAPI GdipDrawPath (GpGraphics *graphics, GpPen *pen, GpPath *path)
状态图形::D rawPath (IN const Pen* 触控笔,IN const GraphicsPath* 路径) 绘制由 GraphicsPath 对象定义的线条和曲线序列。
GpStatus WINGDIPAPI GdipDrawCurve (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)
状态图形::D rawCurve (IN const Pen* pen, IN const PointF* points, IN INT count) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawCurveI (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)
状态图形::D rawCurve (in const Pen* pen, IN const Point* points, IN INT count) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawCurve2 (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, REAL tension)
状态图形::D rawCurve (in const Pen* pen, IN const PointF* points, IN INT count, IN REAL tension) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawCurve2I (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, REAL tension)
状态图形::D rawCurve (IN const Pen* pen, IN const Point* point, IN IN INT count, IN REAL 紧张) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawCurve3 (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, INT offset, INT numberOfSegments, REAL tension)
状态图形::D rawCurve (IN const Pen* pen, IN const Point* point, IN IN INT count, IN REAL 紧张) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawCurve3I (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, INT offset, INT numberOfSegments, REAL tension)
状态图形::D rawCurve (IN const Pen* pen, IN const Point* point, IN IN INT count, IN REAL 紧张) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawClosedCurve (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)
状态图形::D rawClosedCurve (IN const Pen* pen, IN const PointF* points, IN IN INT count) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawClosedCurveI (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)
状态图形::D rawClosedCurve (IN const Pen* pen, IN const Point* point, IN INT count) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawClosedCurve2 (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, REAL tension)
状态图形::D rawClosedCurve (IN const Pen *pen, IN const PointF* points, IN INT count, IN REAL 紧张) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipDrawClosedCurve2I (GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, REAL tension)
状态图形::D rawClosedCurve (IN const Pen *pen, IN const Point* point, IN INT count, IN REAL tension) 绘制闭合的基数样条。
GpStatus WINGDIPAPI GdipGraphicsClear (GpGraphics *graphics, ARGB color)
状态图形::清除 (in const 颜色 &) Graphics 对象清除为指定颜色。
GpStatus WINGDIPAPI GdipFillRectangle (GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height)
状态图形::FillRectangle (IN const Brush* brush, IN REAL x, IN REAL y, IN REAL width, IN REAL height) 使用画笔填充矩形的内部。
GpStatus WINGDIPAPI GdipFillRectangleI (GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height)
状态图形::FillRectangle (IN const Brush* brush, IN INT x, IN INT y, IN INT width, IN INT height) 使用画笔填充矩形的内部。
GpStatus WINGDIPAPI GdipFillRectangles (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRectF *rects, INT count)
状态图形::FillRectangles (in const Brush* brush, const RectF*rects,INT count) 使用画笔填充矩形序列的内部。
GpStatus WINGDIPAPI GdipFillRectanglesI (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRect *rects, INT count)
状态图形::FillRectangles (IN const Brush* brush, IN const Rect *rects, IN INT count) 使用画笔填充矩形序列的内部。
GpStatus WINGDIPAPI GdipFillPolygon (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count, GpFillMode fillMode)
状态图形::FillPolygon (IN const Brush* brush, IN const PointF* points, IN IN INT count, IN FillMode fillMode) 使用画笔填充多边形的内部。
GpStatus WINGDIPAPI GdipFillPolygonI (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count, GpFillMode fillMode)
状态图形::FillPolygon (IN const Brush* brush, IN const Point* point, IN IN INT count, IN FillMode fillMode) 使用画笔填充多边形的内部。
GpStatus WINGDIPAPI GdipFillPolygon2 (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count)
包装器方法不调用。
此函数使用画笔填充多边形。 points 参数指定多边形的顶点。 count 参数指定顶点数。 brush 参数指定用于填充多边形的画笔对象。 填充模式为 FillModeAlternate
GpStatus WINGDIPAPI GdipFillPolygon2I (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count)
包装器方法不调用。
此函数使用画笔填充多边形。 points 参数指定多边形的顶点。 count 参数指定顶点数。 brush 参数指定用于填充多边形的画笔对象。 填充模式为 FillModeAlternate
GpStatus WINGDIPAPI GdipFillEllipse (GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height)
状态图形::FillEllipse (IN const Brush* brush, IN REAL x, IN REAL y, IN REAL width, IN REAL height) 使用画笔填充由坐标和尺寸指定的椭圆的内部。
GpStatus WINGDIPAPI GdipFillEllipseI (GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height)
状态图形::FillEllipse (IN const Brush* 画笔、IN INT x、IN INT y、IN INT 宽度、IN INT 高度) 使用画笔填充由坐标和尺寸指定的椭圆的内部。
GpStatus WINGDIPAPI GdipFillPie (GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)
状态图形::FillPie (IN const Brush* brush, IN REAL x, IN REAL y, IN REAL width, IN REAL height, IN REAL startAngle, IN REAL sweepAngle) 使用画笔填充饼图的内部。
GpStatus WINGDIPAPI GdipFillPieI (GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)
状态图形::FillPie (IN const Brush* brush, IN INT x, IN INT y, IN INT width, IN INT height, IN REAL startAngle, IN REAL sweepAngle) 使用画笔填充饼图的内部。
GpStatus WINGDIPAPI GdipFillPath (GpGraphics *graphics, GpBrush *brush, GpPath *path)
状态图形::FillPath (IN const Brush* 画笔,IN const GraphicsPath* 路径) 使用画笔填充路径的内部。 如果路径中的图形未闭合,此方法会将未封闭的图形视为由连接图形起点和终点的直线关闭。
GpStatus WINGDIPAPI GdipFillClosedCurve (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count)
状态图形::FillClosedCurve (IN const Brush* 画笔,IN const PointF* 磅,IN IN INT 计数) 从点数组创建闭合基数样条,并使用画笔填充样条的内部。
GpStatus WINGDIPAPI GdipFillClosedCurveI (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count)
状态图形::FillClosedCurve (IN const Brush* 画笔,IN const Point* 点,IN IN INT 计数) 从点数组创建闭合基数样条,并使用画笔填充样条的内部。
GpStatus WINGDIPAPI GdipFillClosedCurve2 (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count, REAL tension, GpFillMode fillMode)
状态图形::FillClosedCurve (IN const Brush* brush, IN const PointF* points, IN IN INT count, IN FillMode fillMode, IN REAL tension = 0.5f) 从点数组创建闭合基数样条,并使用画笔根据指定的模式填充样条的内部。
GpStatus WINGDIPAPI GdipFillClosedCurve2I (GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count, REAL tension, GpFillMode fillMode)
状态图形::FillClosedCurve (IN const Brush* brush, IN const Point* points, IN IN INT count, IN FillMode fillMode, IN REAL tension = 0.5f) 从点数组创建闭合基数样条,并使用画笔根据指定的模式填充样条的内部。
GpStatus WINGDIPAPI GdipFillRegion (GpGraphics *graphics, GpBrush *brush, GpRegion *region)
状态图形::FillRegion (IN const Brush* brush, IN const Region* region) 使用画笔填充指定区域。
GpStatus WINGDIPAPI GdipDrawImage (GpGraphics *graphics, GpImage *image, REAL x, REAL y)
状态图形::D rawImage (IN Image* image, IN REAL x, IN REAL y) 在指定位置绘制图像。
GpStatus WINGDIPAPI GdipDrawImageI (GpGraphics *graphics, GpImage *image, INT x, INT y)
状态图形::D rawImage (IN Image* image, IN INT x, IN INT y) 在指定位置绘制图像。
GpStatus WINGDIPAPI GdipDrawImageRect (GpGraphics *graphics, GpImage *image, REAL x, REAL y, REAL width, REAL height)
状态图形::D rawImage (IN Image* image, IN REAL x, IN REAL y, IN REAL width, IN REAL height) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImageRectI (GpGraphics *graphics, GpImage *image, INT x, INT y, INT width, INT height)
状态图形::D rawImage (IN Image* image, IN INT x, IN INT y, IN INT width, IN INT height) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImagePoints (GpGraphics *graphics, GpImage *image, GDIPCONST GpPointF *dstpoints, INT count)
状态图形::D rawImage (IN Image* image, IN const PointF* destPoints, IN INT count) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImagePointsI (GpGraphics *graphics, GpImage *image, GDIPCONST GpPoint *dstpoints, INT count)
状态图形::D rawImage (IN Image* image, IN const Point* destPoints, IN IN INT count) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImagePointRect (GpGraphics *graphics, GpImage *image, REAL x, REAL y, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, GpUnit srcUnit)
状态图形::D rawImage (IN Image* image, IN REAL x, IN REAL y, IN REAL srcx, IN REAL srcy, IN REAL srcwidth, IN REAL srcheight, IN Unit srcUnit) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImagePointRectI (GpGraphics *graphics, GpImage *image, INT x, INT y, INT srcx, INT srcy, INT srcwidth, INT srcheight, GpUnit srcUnit)
状态图形::D rawImage (IN Image* image, IN INT x, IN INT y, IN INT srcx, IN INT srcy, IN INT srcwidth, IN INT srcheight, IN Unit srcUnit) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImageRectRect (GpGraphics *graphics, GpImage *image, REAL dstx, REAL dsty, REAL dstwidth, REAL dstheight, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, GpUnit srcUnit, GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback, VOID * callbackData)
状态图形::D rawImage (IN Image* image, IN const RectF& destRect, IN REAL srcx, IN REAL srcy, IN REAL srcwidth, IN REAL srcheight, IN Unit srcUnit, IN const ImageAttributes* imageAttributes = NULL, IN DrawImageAbort callback = NULL, IN VOID* callbackData = NULL) 绘制图像。
在平面函数中, dstxdstydstwidthdstheight 参数指定与包装器方法中的 dstRect 参数对应的矩形。
GpStatus WINGDIPAPI GdipDrawImageRectRectI (GpGraphics *graphics, GpImage *image, INT dstx, INT dsty, INT dstwidth, INT dstheight, INT srcx, INT srcy, INT srcwidth, INT srcheight, GpUnit srcUnit, GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback, VOID * callbackData)
状态图形::D rawImage (IN Image* image, IN const Rect& destRect, IN INT srcx, IN INT srcy, INT srcwidth, IN INT srcheight, IN Unit srcUnit, IN const ImageAttributes* imageAttributes = NULL, IN DrawImageAbort callback = NULL, IN VOID* callbackData = NULL) 绘制图像。
在平面函数中, dstxdstydstwidthdstheight 参数指定与包装器方法中的 dstRect 参数对应的矩形。
GpStatus WINGDIPAPI GdipDrawImagePointsRect (GpGraphics *graphics, GpImage *image, GDIPCONST GpPointF *points, INT count, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, GpUnit srcUnit, GDIPCONST GpImageAttributes* imageAttributes, DrawImageAbort callback, VOID * callbackData)
状态图形::D rawImage (IN Image* image, IN const PointF* destPoints, IN IN INT count, IN REAL srcx, IN REAL srcy, IN REAL srcwidth, IN REAL srcheight, IN Unit srcUnit, IN const ImageAttributes* imageAttributes* imageAttributes = NULL, IN DrawImageAbort callback = NULL, IN VOID* callbackData = NULL) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImagePointsRectI (GpGraphics *graphics, GpImage *image、GDIPCONST GpPoint *points、INT count、INT srcx、INT srcy、INT srcwidth、INT srcheight、GpUnit srcUnit、GDIPCONST GpImageAttributes* imageAttributes、DrawImageAbort callback、VOID * callbackData)
状态图形::D rawImage (IN Image* image, IN const Point* destPoints, IN IN INT count, IN INT srcx, IN INT srcy, IN INT srcwidth, IN INT srcheight, IN Unit srcUnit, IN const ImageAttributes* imageAttributes = NULL, IN DrawImageAbort callback = NULL, IN VOID* callbackData = NULL) 绘制图像。
GpStatus WINGDIPAPI GdipDrawImageFX (GpGraphics *graphics, GpImage *image, GpRectF *source, GpMatrix *xForm, CGpEffect *effect, GpImageAttributes *imageAttributes, GpUnit srcUnit)
状态图形::D rawImage (IN Image *image, IN RectF *sourceRect, IN Matrix *xForm, IN Effect *effect, IN ImageAttributes *imageAttributes, IN Unit srcUnit) 应用指定效果后绘制图像的一部分。
GpStatus WINGDIPAPI GdipEnumerateMetafileDestPoint ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST PointF & destPoint, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const PointF & destPoint, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileDestPointI ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST Point & destPoint, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const Point & destPoint, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileDestRect ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST RectF & destRect, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const RectF & destRect, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileDestRectI ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST Rect & destRect, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const Rect & destRect, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileDestPoints ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST PointF * destPoints, INT count, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
不由包装器方法调用。
未实现。
GpStatus WINGDIPAPI GdipEnumerateMetafileDestPointsI ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST Point * destPoints, INT count, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const Point * destPoints, IN IN INT count, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPoint ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST PointF & destPoint, GDIPCONST RectF & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
不由包装器方法调用。
未实现。
GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPointI ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST Point & destPoint, GDIPCONST Rect & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const Point & destPoint, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestRect ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile、GDIPCONST RectF & destRect、GDIPCONST RectF & srcRect、Unit srcUnit、EnumerateMetafileProc callback、VOID * callbackData、GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const RectF & destRect, IN const RectF & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestRectI ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile、GDIPCONST Rect & destRect、GDIPCONST Rect & srcRect、Unit srcUnit、EnumerateMetafileProc callback、VOID * callbackData、GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const Rect & destRect, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPoints ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile、GDIPCONST PointF * destPoints、INT count、GDIPCONST RectF & srcRect、Unit srcUnit、EnumerateMetafileProc callback、VOID * callbackData、GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const PointF * destPoints, IN IN IN INT count, IN const RectF & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以使用此方法通过在回调函数中调用 PlayRecord 来显示图元文件。
GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPointsI ( GpGraphics * graphics, GDIPCONST GpMetafile * metafile、GDIPCONST Point * destPoints、INT count、GDIPCONST Rect & srcRect、Unit srcUnit、EnumerateMetafileProc callback、VOID * callbackData、GDIPCONST GpImageAttributes * imageAttributes )
Status Graphics::EnumerateMetafile ( IN const Metafile * metafile, IN const Point * destPoints, IN IN INT count, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) 为指定图元文件中的每条记录调用应用程序定义的回调函数。 可以通过在回调函数中调用 PlayRecord 来使用此方法来显示图元文件。
GpStatus WINGDIPAPI GdipPlayMetafileRecord ( GDIPCONST GpMetafile * 图元文件、EmfPlusRecordType recordType、UINT 标志、UINT dataSize、GDIPCONST BYTE * 数据)
Status Metafile::P layRecord ( IN EmfPlusRecordType recordType,IN UINT 标志,IN UINT dataSize,IN const BYTE * data ) const const 播放图元文件记录。
GpStatus WINGDIPAPI GdipSetClipGraphics (GpGraphics *graphics, GpGraphics *srcgraphics, CombineMode combineModemode)
Status Graphics::SetClip (IN const Graphics* g, IN CombineMode combineMode = CombineModeReplace) 汇报此 Graphics 对象的剪裁区域到一个区域,该区域是自身与另一个 Graphics 对象的剪辑区域的组合。
包装器方法中的 g 参数对应于平面函数中的 srcgraphics 参数。
GpStatus WINGDIPAPI GdipSetClipRect (GpGraphics *graphics, REAL x, REAL y, REAL width, REAL height, CombineMode combineModemode)
状态图形::SetClip (IN const RectF& rect,IN CombineMode combineMode = CombineModeReplace) 汇报此 Graphics 对象的剪裁区域到一个区域,该区域是自身和矩形的组合。
平面函数中的 xywidthheight 参数指定与包装器方法中的 rect 参数对应的矩形。
GpStatus WINGDIPAPI GdipSetClipRectI (GpGraphics *graphics, INT x, INT y, INT width, INT height, CombineMode combineMode)
状态图形::SetClip (IN const Rect& rect,IN CombineMode combineMode = CombineModeReplace) 汇报此 Graphics 对象的剪裁区域到一个区域,该区域是自身和矩形的组合。
平面函数中的 xywidthheight 参数指定与包装器方法中的 rect 参数对应的矩形。
GpStatus WINGDIPAPI GdipSetClipPath (GpGraphics *graphics, GpPath *path, CombineMode combineModeMode)
状态图形::SetClip (IN const GraphicsPath* 路径,IN CombineMode combineMode = CombineModeReplace) 汇报此 Graphics 对象的剪切区域到一个区域,该区域是自身与图形路径指定的区域的组合。 如果路径中的某个图形未闭合,此方法会将未封闭的图形视为由连接图形起点和终点的直线关闭。
GpStatus WINGDIPAPI GdipSetClipRegion (GpGraphics *graphics, GpRegion *region, CombineMode combineModeMode)
Status Graphics::SetClip (in const Region* region, IN CombineMode combineMode = CombineModeReplace) 汇报此 Graphics 对象的剪辑区域到一个区域,该区域是自身与 Region 对象指定的区域的组合。
GpStatus WINGDIPAPI GdipSetClipHrgn (GpGraphics *graphics, HRGN hRgn, CombineMode combineModeMode)
状态图形::SetClip (IN HRGN hRgn,IN CombineMode combineMode = CombineModeReplace) 汇报此 Graphics 对象的剪辑区域到一个区域,该区域是自身与 Windows 图形设备接口 (GDI) 区域的组合
GpStatus WINGDIPAPI GdipResetClip (GpGraphics *graphics)
状态图形::ResetClip () 将此 Graphics 对象的剪切区域设置为无限区域。
GpStatus WINGDIPAPI GdipTranslateClip (GpGraphics *graphics, REAL dx, REAL dy)
状态图形::TranslateClip (IN REAL dx,IN REAL dy) 转换此 Graphics 对象的剪裁区域。
GpStatus WINGDIPAPI GdipTranslateClipI (GpGraphics *graphics, INT dx, INT dy)
状态图形::TranslateClip (INT dx,IN INT dy) 转换此 Graphics 对象的剪裁区域。
GpStatus WINGDIPAPI GdipGetClip (GpGraphics *graphics, GpRegion *region)
状态图形::GetClip (OUT 区域* 区域) const 获取此 Graphics 对象的剪辑区域。
GpStatus WINGDIPAPI GdipGetClipBounds (GpGraphics *graphics, GpRectF *rect)
状态图形::GetClipBounds (OUT RectF* rect) const 获取一个矩形,该矩形包含此 Graphics 对象的剪裁区域。
GpStatus WINGDIPAPI GdipGetClipBoundsI (GpGraphics *graphics, GpRect *rect)
状态图形::GetClipBounds (OUT Rect* rect) const 获取一个矩形,该矩形包含此 Graphics 对象的剪裁区域。
GpStatus WINGDIPAPI GdipIsClipEmpty (GpGraphics *graphics, BOOL *result)
BOOL Graphics::IsClipEmpty () const 确定此 Graphics 对象的剪辑区域是否为空。
GpStatus WINGDIPAPI GdipGetVisibleClipBounds (GpGraphics *graphics, GpRectF *rect)
状态图形::GetVisibleClipBounds (OUT RectF *rect) const 获取一个矩形,该矩形包含此 Graphics 对象的可见剪裁区域。 可见剪裁区域是此 Graphics 对象的剪裁区域与窗口剪辑区域的交集。
GpStatus WINGDIPAPI GdipGetVisibleClipBoundsI (GpGraphics *graphics, GpRect *rect)
状态图形::GetVisibleClipBounds (OUT Rect *rect) const 获取一个矩形,该矩形包含此 Graphics 对象的可见剪裁区域。 可见剪裁区域是此 Graphics 对象的剪裁区域与窗口剪辑区域的交集。
GpStatus WINGDIPAPI GdipIsVisibleClipEmpty (GpGraphics *graphics, BOOL *result)
BOOL Graphics::IsVisibleClipEmpty () const 确定此 Graphics 对象的可见剪裁区域是否为空。 可见剪裁区域是此 Graphics 对象的剪裁区域与窗口剪辑区域的交集。
GpStatus WINGDIPAPI GdipIsVisiblePoint (GpGraphics *graphics, REAL x, REAL y, BOOL *result)
BOOL Graphics::IsVisible (IN const PointF& point) const 确定指定的点是否在此 Graphics 对象的可见剪裁区域内。 可见剪裁区域是此 Graphics 对象的剪裁区域与窗口剪辑区域的交集。
平面函数中的 xy 参数表示与包装器方法中的 point 参数相对应的 的 x 和 y 坐标。
GpStatus WINGDIPAPI GdipIsVisiblePointI (GpGraphics *graphics, INT x, INT y, BOOL *result)
BOOL Graphics::IsVisible (IN const Point& point) const 确定指定的点是否在此 Graphics 对象的可见剪裁区域内。 可见剪裁区域是此 Graphics 对象的剪裁区域与窗口剪辑区域的交集。
平面函数中的 xy 参数表示与包装器方法中的 point 参数相对应的 的 x 和 y 坐标。
GpStatus WINGDIPAPI GdipIsVisibleRect (GpGraphics *graphics, REAL x, REAL y, REAL width, REAL height, BOOL *result)
BOOL Graphics::IsVisible (IN const RectF& rect) const 确定指定的矩形是否与此 Graphics 对象的可见剪裁区域相交。 可见剪裁区域是此 Graphics 对象的剪裁区域与窗口剪辑区域的交集。
平面函数中的 xywidthheight 参数指定与包装器方法中的 rect 参数对应的矩形。
GpStatus WINGDIPAPI GdipIsVisibleRectI (GpGraphics *graphics, INT x, INT y, INT width, INT height, BOOL *result)
BOOL Graphics::IsVisible (IN const Rect& rect) const 确定指定的矩形是否与此 Graphics 对象的可见剪裁区域相交。 可见剪裁区域是此 Graphics 对象的剪裁区域与窗口剪辑区域的交集。
平面函数中的 xywidthheight 参数指定与包装器方法中的 rect 参数对应的矩形。
GpStatus WINGDIPAPI GdipSaveGraphics (GpGraphics *graphics, GraphicsState *state)
GraphicsState Graphics::Save () const 保存此 Graphics 对象的当前状态 (转换、剪辑区域和质量设置) 。 稍后可以通过调用 Graphics::Restore 方法还原状态。
GpStatus WINGDIPAPI GdipRestoreGraphics (GpGraphics *graphics, GraphicsState state)
Status Graphics::Restore (IN GraphicsState gstate) 将此 Graphics 对象的状态设置为之前对此 Graphics 对象的 Graphics::Save 方法的调用所存储的状态。
GpStatus WINGDIPAPI GdipBeginContainer (GpGraphics *graphics, GDIPCONST GpRectF* dstrect, GDIPCONST GpRectF *srcrect, GpUnit unit, GraphicsContainer *state)
Graphics::GraphicsContainer BeginContainer (IN const RectF &dstrect、IN const RectF &srcrect、IN Unit unit) 开始新的图形容器。
GpStatus WINGDIPAPI GdipBeginContainerI (GpGraphics *graphics, GDIPCONST GpRect* dstrect, GDIPCONST GpRect *srcrect, GpUnit unit, GraphicsContainer *state)
Graphics::GraphicsContainer BeginContainer (IN const Rect &dstrect, IN const Rect &srcrect, IN Unit unit) 开始新的图形容器。
GpStatus WINGDIPAPI GdipBeginContainer2 (GpGraphics *graphics, GraphicsContainer* 状态)
Graphics::GraphicsContainer BeginContainer () 开始新的图形容器。
GpStatus WINGDIPAPI GdipEndContainer (GpGraphics *graphics, GraphicsContainer state)
状态图形::EndContainer (IN GraphicsContainer 状态) 关闭以前由 Graphics::BeginContainer 方法打开的图形容器。
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromWmf ( HMETAFILE,constWmfPlaceableFileHeader*,MetafileHeader* * header )
static Status Metafile::GetMetafileHeader ( HMETAFILE hWmf, const WmfPlaceableFileHeader* 标头) 获取 标头。
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromEmf ( HENHMETAFILE hEmf, MetafileHeader * header )
static Status Metafile::GetMetafileHeader ( IN HENHMETAFILE hEmf, OUT MetafileHeader * header ) 获取 标头。
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromFile ( GDIPCONST WCHAR* filename, MetafileHeader * header )
static Status Metafile::GetMetafileHeader ( IN const WCHAR* filename, OUT MetafileHeader * header ) 获取 标头。
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromStream ( IStream * stream,MetafileHeader * header )
static Status Metafile::GetMetafileHeader ( IN IStream * stream,OUT MetafileHeader * header ) 获取 标头。
GpStatus WINGDIPAPI GdipGetMetafileHeaderFromMetafile ( GpMetafile * metafile,MetafileHeader * header )
Status Metafile::GetMetafileHeader ( OUT MetafileHeader * header ) const 获取 标头。
GpStatus WINGDIPAPI GdipGetHemfFromMetafile ( GpMetafile * metafile,HENHMETAFILE * hEmf )
HENHMETAFILE Metafile::GetHENHMETAFILE () 获取增强型图元文件 (EMF) 文件的 Windows 句柄。
GpStatus WINGDIPAPI GdipCreateStreamOnFile (GDIPCONST WCHAR * filename, UINT access, IStream **stream)
不由包装器方法调用。
返回一个指针,该指针基于文件指向 IStream 接口。 filename 参数指定文件。 访问参数是一组必须包含GENERIC_READ或GENERIC_WRITE的标志。 流参数接收指向 IStream 接口的指针。
GpStatus WINGDIPAPI GdipCreateMetafileFromWmf (HMETAFILE hWmf, BOOL deleteWmf, GDIPCONST WmfPlaceableFileHeader * wmfPlaceableFileHeader, GpMetafile **metafile)
Metafile::Metafile (IN HMETAFILE hWmf, IN const WmfPlaceableFileHeader * wmfPlaceableFileHeader, IN BOOL deleteWmf = FALSE) 创建用于录制的 Windows GDI+ 图元文件::图元文件 对象。 格式将为可放置的图元文件。
GpStatus WINGDIPAPI GdipCreateMetafileFromEmf (HENHMETAFILE hEmf, BOOL deleteEmf, GpMetafile **metafile)
Metafile::Metafile (IN HENHMETAFILE hEmf, IN BOOL deleteEmf = FALSE) 创建 Windows GDI+ 图元文件::图元文件 对象,以便基于 Windows 图形设备接口 (GDI) 增强型图元文件 (EMF) 文件进行播放。
GpStatus WINGDIPAPI GdipCreateMetafileFromFile (GDIPCONST WCHAR* 文件,GpMetafile **metafile)
Metafile::Metafile (IN const WCHAR* filename) 创建用于播放的 图元文件::图元文件 对象。
GpStatus WINGDIPAPI GdipCreateMetafileFromWmfFile (GDIPCONST WCHAR* 文件,GDIPCONST WmfPlaceableFileHeader * wmfPlaceableFileHeader, GpMetafile **metafile)
不由包装器方法调用。
未实现。
GpStatus WINGDIPAPI GdipCreateMetafileFromStream (IStream * stream,GpMetafile **metafile)
图元文件::图元文件 (IN IStream* 流) 从 IStream 接口创建用于播放的 Metafile::Metafile 对象。
GpStatus WINGDIPAPI GdipRecordMetafile ( HDC referenceHdc, EmfType type, GDIPCONST GpRectF * frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR * description, GpMetafile ** metafile )
Metafile::Metafile ( IN HDC referenceHdc, IN const RectF & frameRect, IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, IN EmfType type = EmfTypeEmfPlusDual, IN const WCHAR * description = NULL ) 创建用于录制的 图元文件::图元文件 对象。
GpStatus WINGDIPAPI GdipRecordMetafileI ( HDC referenceHdc, EmfType type, GDIPCONST GpRect * frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR * description, GpMetafile ** metafile )
Metafile::Metafile ( IN HDC referenceHdc, IN const Rect & frameRect, IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, IN EmfType type = EmfTypeEmfPlusDual, IN const WCHAR * description = NULL ) 创建用于录制的 图元文件::图元文件 对象。
GpStatus WINGDIPAPI GdipRecordMetafileFileName ( GDIPCONST WCHAR* fileName, HDC referenceHdc, EmfType type, GDIPCONST GpRectF * frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR * description, GpMetafile ** metafile )
Metafile::Metafile ( IN const WCHAR* fileName, IN HDC referenceHdc, IN const RectF & frameRect, IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, IN EmfType type = EmfTypeEmfPlusDual, IN const WCHAR * description = NULL ) 创建用于录制的 图元文件::图元文件 对象。
GpStatus WINGDIPAPI GdipRecordMetafileFileNameI ( GDIPCONST WCHAR* fileName, HDC referenceHdc, EmfType type, GDIPCONST GpRect * frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR * description, GpMetafile ** metafile )
Metafile::Metafile ( IN const WCHAR* fileName, IN HDC referenceHdc, IN const Rect & frameRect, IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, IN EmfType type = EmfTypeEmfPlusDual, IN const WCHAR * description = NULL ) 创建用于录制的 图元文件::图元文件 对象。
GpStatus WINGDIPAPI GdipRecordMetafileStream ( IStream * stream, HDC referenceHdc, EmfType type, GDIPCONST GpRectF * frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR * description, GpMetafile ** metafile )
Metafile::Metafile ( IN IStream * stream,IN HDC referenceHdc, IN const RectF & frameRect, IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, IN EmfType type = EmfTypeEmfPlusDual, IN const WCHAR * description = NULL ) 创建用于录制到 IStream 接口的 Metafile::Metafile 对象。
GpStatus WINGDIPAPI GdipRecordMetafileStreamI ( IStream * stream, HDC referenceHdc, EmfType type, GDIPCONST GpRect * frameRect, MetafileFrameUnit frameUnit, GDIPCONST WCHAR * description, GpMetafile ** metafile )
Metafile::Metafile ( IN IStream * stream,IN HDC referenceHdc, IN const Rect & frameRect, IN MetafileFrameUnit frameUnit = MetafileFrameUnitGdi, IN EmfType type = EmfTypeEmfPlusDual, IN const WCHAR * description = NULL ) 创建用于录制到 IStream 接口的 Metafile::Metafile 对象。
GpStatus WINGDIPAPI GdipSetMetafileDownLevelRasterizationLimit ( GpMetafile * metafile,UINT metafileRasterizationLimitDpi )
Status Metafile::SetDownLevelRasterizationLimit (IN UINT metafileRasterizationLimitDpi) 设置存储在此图元文件中的某些画笔位图的分辨率。
GpStatus WINGDIPAPI GdipGetMetafileDownLevelRasterizationLimit ( GDIPCONST GpMetafile * metafile, UINT * metafileRasterizationLimitDpi )
UINT Metafile::GetDownLevelRasterizationLimit () const 获取当前为此图元文件设置的光栅化限制。 光栅化限制是用于存储在图元文件中的某些画笔位图的分辨率。 有关光栅化限制的详细说明,请参阅 Metafile::SetDownLevelRasterizationLimit
GpStatus WINGDIPAPI GdipGetImageDecodersSize (UINT *numDecoders, UINT *size)
状态 GetImageDecodersSize ( OUT UINT *numDecoders, OUT UINT *size) 获取可用图像解码器的数量,以及 GetImageDecoders 函数返回的 ImageCodecInfo 对象数组的总大小。
GpStatus WINGDIPAPI GdipGetImageDecoders (UINT numDecoders,UINT size,ImageCodecInfo *decoders)
状态 GetImageDecoders ( IN UINT numDecoders,IN UINT size,OUT ImageCodecInfo *解码器) 获取 ImageCodecInfo 对象的数组,这些对象包含有关可用图像解码器的信息。
GpStatus WINGDIPAPI GdipGetImageEncodersSize (UINT *numEncoders, UINT *size)
状态 GetImageEncodersSize ( OUT UINT *numEncoders, OUT UINT *size) 获取可用图像编码器的数量以及 GetImageEncoders 函数返回的 ImageCodecInfo 对象数组的总大小。
GpStatus WINGDIPAPI GdipGetImageEncoders (UINT numEncoders、UINT size、ImageCodecInfo *encoders)
状态 GetImageEncoders ( IN UINT numEncoders,IN UINT size,OUT ImageCodecInfo *encoders) 获取 ImageCodecInfo 对象的数组,这些对象包含有关可用图像编码器的信息。
GpStatus WINGDIPAPI GdipComment (GpGraphics* graphics, UINT sizeData, GDIPCONST BYTE * data)
状态图形::AddMetafileComment (IN const BYTE * data, IN UINT sizeData) 向现有图元文件添加文本注释。