Export (0) Print
Expand All

Graphics Functions

Windows GDI+ exposes a flat API that consists of about 600 functions, which are implemented in Gdiplus.dll and declared in Gdiplusflat.h. The functions in the GDI+ flat API are wrapped by a collection of about 40 C++ classes. It is recommended that you do not directly call the functions in the flat API. Whenever you make calls to GDI+, you should do so by calling the methods and functions provided by the C++ wrappers. Microsoft Product Support Services will not provide support for code that calls the flat API directly. For more information on using these wrapper methods, see GDI+ Flat API.

The following flat API functions are wrapped by the Graphics C++ class.

Graphics Functions and Corresponding Wrapper Methods

Flat functionWrapper methodRemarks

GpStatus WINGDIPAPI GdipFlush(GpGraphics *graphics, GpFlushIntention intention)

VOID Graphics::Flush(IN FlushIntention intention = FlushIntentionFlush) Flushes all pending graphics operations.

GpStatus WINGDIPAPI GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)

Graphics::Graphics(IN HDC hdc) Creates a Graphics object that is associated with a specified device context.

GpStatus WINGDIPAPI GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **graphics)

Graphics::Graphics(IN HDC hdc, IN HANDLE hdevice) Creates a Graphics object that is associated with a specified device context and a specified device.

GpStatus WINGDIPAPI GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics)

Graphics::Graphics(IN HWND hwnd, IN BOOL icm = FALSE) Creates a Graphics object that is associated with a specified window.

GpStatus WINGDIPAPI GdipCreateFromHWNDICM(HWND hwnd, GpGraphics **graphics)

Graphics::Graphics(IN HWND hwnd, IN BOOL icm = FALSE) This function uses Image Color Management (ICM). It is called when the icm parameter of the Graphics::Graphics constructor is set to TRUE.

GpStatus WINGDIPAPI GdipDeleteGraphics(GpGraphics *graphics)

Not called by wrapper methods.

Not implemented.

GpStatus WINGDIPAPI GdipGetDC(GpGraphics* graphics, HDC * hdc)

HDC Graphics::GetHDC() Gets a handle to the device context associated with this Graphics object.

GpStatus WINGDIPAPI GdipReleaseDC(GpGraphics* graphics, HDC hdc)

VOID Graphics::ReleaseHDC(IN HDC hdc) Releases a device context handle obtained by a previous call to the Graphics::GetHDC method of this Graphics object.

GpStatus WINGDIPAPI GdipSetCompositingMode(GpGraphics *graphics, CompositingMode compositingMode)

Status Graphics::SetCompositingMode(IN CompositingMode compositingMode) Sets the compositing mode of this Graphics object.

GpStatus WINGDIPAPI GdipGetCompositingMode(GpGraphics *graphics, CompositingMode *compositingMode)

Status Graphics::GetCompositingMode() const Gets the compositing mode currently set for this Graphics object.

GpStatus WINGDIPAPI GdipSetRenderingOrigin(GpGraphics *graphics, INT x, INT y)

Status Graphics::SetRenderingOrigin(IN INT x, IN INT y) Sets the rendering origin of this Graphics object. The rendering origin is used to set the dither origin for 8-bits-per-pixel and 16-bits-per-pixel dithering and is also used to set the origin for hatch brushes. Syntax

GpStatus WINGDIPAPI GdipGetRenderingOrigin(GpGraphics *graphics, INT *x, INT *y)

Status Graphics::GetRenderingOrigin(OUT INT *x, OUT INT *y) const Gets the rendering origin currently set for this Graphics object. The rendering origin is used to set the dither origin for 8-bits per pixel and 16-bits per pixel dithering and is also used to set the origin for hatch brushes.

GpStatus WINGDIPAPI GdipSetCompositingQuality(GpGraphics *graphics, CompositingQuality compositingQuality)

Status Graphics::SetCompositingQuality(IN CompositingQuality compositingQuality) Sets the compositing quality of this Graphics object.

GpStatus WINGDIPAPI GdipGetCompositingQuality(GpGraphics *graphics, CompositingQuality *compositingQuality)

CompositingQuality Graphics::GetCompositingQuality() const Gets the compositing quality currently set for this Graphics object.

GpStatus WINGDIPAPI GdipSetSmoothingMode(GpGraphics *graphics, SmoothingMode smoothingMode)

Status Graphics::SetSmoothingMode(IN SmoothingMode smoothingMode) Sets the rendering quality of the Graphics object.

GpStatus WINGDIPAPI GdipGetSmoothingMode(GpGraphics *graphics, SmoothingMode *smoothingMode)

SmoothingMode Graphics::GetSmoothingMode() const Determines whether smoothing (antialiasing) is applied to the Graphics object.

GpStatus WINGDIPAPI GdipSetPixelOffsetMode(GpGraphics* graphics, PixelOffsetMode pixelOffsetMode)

Status Graphics::SetPixelOffsetMode(IN PixelOffsetMode pixelOffsetMode) Sets the pixel offset mode of this Graphics object.

GpStatus WINGDIPAPI GdipGetPixelOffsetMode(GpGraphics *graphics, PixelOffsetMode *pixelOffsetMode)

PixelOffsetMode Graphics::GetPixelOffsetMode() const Gets the pixel offset mode currently set for this Graphics object.

GpStatus WINGDIPAPI GdipSetTextRenderingHint(GpGraphics *graphics, TextRenderingHint mode)

Status Graphics::SetTextRenderingHint(IN TextRenderingHint newMode) Sets the text rendering mode of this Graphics object.

GpStatus WINGDIPAPI GdipGetTextRenderingHint(GpGraphics *graphics, TextRenderingHint *mode)

TextRenderingHint Graphics::GetTextRenderingHint() const Gets the text rendering mode currently set for this Graphics object.

GpStatus WINGDIPAPI GdipSetTextContrast(GpGraphics *graphics, UINT contrast)

Status Graphics::SetTextContrast(IN UINT contrast) Sets the contrast value of this Graphics object. The contrast value is used for antialiasing text.

GpStatus WINGDIPAPI GdipGetTextContrast(GpGraphics *graphics, UINT * contrast)

UINT Graphics::GetTextContrast() const Gets the contrast value currently set for this Graphics object. The contrast value is used for antialiasing text.

GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics, InterpolationMode interpolationMode)

Status Graphics::SetInterpolationMode(IN InterpolationMode interpolationMode) Sets the interpolation mode of this Graphics object. The interpolation mode determines the algorithm that is used when images are scaled or rotated.

GpStatus WINGDIPAPI GdipGraphicsSetAbort(GpGraphics *pGraphics, GdiplusAbort *pIAbort)

Not called by wrapper methods.

Not implemented.

GpStatus WINGDIPAPI GdipGetInterpolationMode(GpGraphics *graphics, InterpolationMode *interpolationMode)

InterpolationMode Graphics::GetInterpolationMode() const Gets the interpolation mode currently set for this Graphics object. The interpolation mode determines the algorithm that is used when images are scaled or rotated.

GpStatus WINGDIPAPI GdipSetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)

Status Graphics::SetTransform(IN const Matrix* matrix) Sets the world transformation of this Graphics object.

GpStatus WINGDIPAPI GdipResetWorldTransform(GpGraphics *graphics)

Status Graphics::ResetTransform() Sets the world transformation matrix of this Graphics object to the identity matrix.

GpStatus WINGDIPAPI GdipMultiplyWorldTransform(GpGraphics *graphics, GDIPCONST GpMatrix *matrix, GpMatrixOrder order)

Status Graphics::MultiplyTransform(IN const Matrix* matrix, IN MatrixOrder order = MatrixOrderPrepend) Updates this Graphics object's world transformation matrix with the product of itself and another matrix.

GpStatus WINGDIPAPI GdipTranslateWorldTransform(GpGraphics *graphics, REAL dx, REAL dy, GpMatrixOrder order)

Status Graphics::TranslateTransform(IN REAL dx, IN REAL dy, IN MatrixOrder order = MatrixOrderPrepend) Updates this Graphics object's world transformation matrix with the product of itself and a translation matrix.

GpStatus WINGDIPAPI GdipScaleWorldTransform(GpGraphics *graphics, REAL sx, REAL sy, GpMatrixOrder order)

Status Graphics::ScaleTransform(IN REAL sx, IN REAL sy, IN MatrixOrder order = MatrixOrderPrepend) Updates this Graphics object's world transformation matrix with the product of itself and a scaling matrix.

GpStatus WINGDIPAPI GdipRotateWorldTransform(GpGraphics *graphics, REAL angle, GpMatrixOrder order)

Status Graphics::RotateTransform(IN REAL angle, IN MatrixOrder order = MatrixOrderPrepend) Updates the world transformation matrix of this Graphics object with the product of itself and a rotation matrix.

GpStatus WINGDIPAPI GdipGetWorldTransform(GpGraphics *graphics, GpMatrix *matrix)

Status Graphics::GetTransform(OUT Matrix* matrix) const Gets the world transformation matrix of this Graphics object.

GpStatus WINGDIPAPI GdipResetPageTransform(GpGraphics *graphics)

Not called by wrapper methods.

This function resets the page transform matrix to identity.

GpStatus WINGDIPAPI GdipGetPageUnit(GpGraphics *graphics, GpUnit *unit)

Unit Graphics::GetPageUnit() const Gets the unit of measure currently set for this Graphics object.

GpStatus WINGDIPAPI GdipGetPageScale(GpGraphics *graphics, REAL *scale)

REAL Graphics::GetPageScale() const Gets the scaling factor currently set for the page transformation of this Graphics object. The page transformation converts page coordinates to device coordinates.

GpStatus WINGDIPAPI GdipSetPageUnit(GpGraphics *graphics, GpUnit unit)

Status Graphics::SetPageUnit(IN Unit unit) Sets the unit of measure for this Graphics object. The page unit belongs to the page transformation, which converts page coordinates to device coordinates.

GpStatus WINGDIPAPI GdipSetPageScale(GpGraphics *graphics, REAL scale)

Status Graphics::SetPageScale(IN REAL scale) Sets the scaling factor for the page transformation of this Graphics object. The page transformation converts page coordinates to device coordinates.

GpStatus WINGDIPAPI GdipGetDpiX(GpGraphics *graphics, REAL* dpi)

REAL Graphics::GetDpiX() const Gets the horizontal resolution, in dots per inch, of the display device associated with this Graphics object.

GpStatus WINGDIPAPI GdipGetDpiY(GpGraphics *graphics, REAL* dpi)

REAL Graphics::GetDpiY() const Gets the vertical resolution, in dots per inch, of the display device associated with this Graphics object.

GpStatus WINGDIPAPI GdipTransformPoints(GpGraphics *graphics, GpCoordinateSpace destSpace, GpCoordinateSpace srcSpace, GpPointF *points, INT count)

Not called by wrapper methods.

Not implemented.

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 INT count) const Converts an array of points from one coordinate space to another. The conversion is based on the current world and page transformations of this Graphics object.

GpStatus WINGDIPAPI GdipGetNearestColor(GpGraphics *graphics, ARGB* argb)

Status Graphics::GetNearestColor(IN OUT Color* color) const Gets the nearest color to the color that is passed in. This method works on 8-bits per pixel or lower display devices for which there is an 8-bit color palette.

HPALETTE WINGDIPAPI GdipCreateHalftonePalette()

static HPALETTE Graphics::GetHalftonePalette() Gets a Windows halftone palette.

GpStatus WINGDIPAPI GdipDrawLine(GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, REAL x2, REAL y2)

Status Graphics::DrawLine(IN const Pen* pen, IN REAL x1, IN REAL y1, IN REAL x2, IN REAL y2) Draws a line that connects two points.

GpStatus WINGDIPAPI GdipDrawLineI(GpGraphics *graphics, GpPen *pen, INT x1, INT y1, INT x2, INT y2)

Status Graphics::DrawLine(IN const Pen* pen, IN INT x1, IN INT y1, IN INT x2, IN INT y2) Draws a line that connects two points.

GpStatus WINGDIPAPI GdipDrawLines(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)

Status Graphics::DrawLines(IN const Pen* pen, IN const PointF* points, IN INT count) Draws a sequence of connected lines.

GpStatus WINGDIPAPI GdipDrawLinesI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)

Status Graphics:DrawLines(IN const Pen* pen, IN const Point* points, IN INT count) Draws a sequence of connected lines.

GpStatus WINGDIPAPI GdipDrawArc(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)

Status Graphics::DrawArc(IN const Pen* pen, IN REAL x, IN REAL y, IN REAL width, IN REAL height, IN REAL startAngle, IN REAL sweepAngle) Draws an arc. The arc is part of an ellipse.

GpStatus WINGDIPAPI GdipDrawArcI(GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)

Status Graphics::DrawArc(IN const Pen* pen, IN INT x, IN INT y, IN INT width, IN INT height, IN REAL startAngle, IN REAL sweepAngle) Draws an arc. The arc is part of an ellipse.

GpStatus WINGDIPAPI GdipDrawBezier(GpGraphics *graphics, GpPen *pen, REAL x1, REAL y1, REAL x2, REAL y2, REAL x3, REAL y3, REAL x4, REAL y4)

Status Graphics::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) Draws a Bézier spline.

GpStatus WINGDIPAPI GdipDrawBezierI(GpGraphics *graphics, GpPen *pen, INT x1, INT y1, INT x2, INT y2, INT x3, INT y3, INT x4, INT y4)

Status Graphics::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) Draws a Bézier spline.

GpStatus WINGDIPAPI GdipDrawBeziers(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)

Status Graphics::DrawBeziers(IN const Pen* pen, IN const PointF* points, IN INT count) Draws a sequence of connected Bézier splines.

GpStatus WINGDIPAPI GdipDrawBeziersI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)

Status Graphics::DrawBeziers(IN const Pen* pen, IN const Point* points, IN INT count) Draws a sequence of connected Bézier splines.

GpStatus WINGDIPAPI GdipDrawRectangle(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height)

Status Graphics:DrawRectangle(IN const Pen* pen, IN REAL x, IN REAL y, IN REAL width, IN REAL height) Draws a rectangle.

GpStatus WINGDIPAPI GdipDrawRectangleI(GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height)

Status Graphics::DrawRectangle(IN const Pen* pen, IN INT x, IN INT y, IN INT width, IN INT height) Draws a rectangle.

GpStatus WINGDIPAPI GdipDrawRectangles(GpGraphics *graphics, GpPen *pen, GDIPCONST GpRectF *rects, INT count)

Status Graphics::DrawRectangles(IN const Pen* pen, IN const RectF* rects, IN INT count) Draws a sequence of rectangles.

GpStatus WINGDIPAPI GdipDrawRectanglesI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpRect *rects, INT count)

Status Graphics::DrawRectangles(IN const Pen* pen, IN const Rect* rects, IN INT count) Draws a sequence of rectangles.

GpStatus WINGDIPAPI GdipDrawEllipse(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height)

Status Graphics::DrawEllipse(IN const Pen* pen, IN REAL x, IN REAL y, IN REAL width, IN REAL height) Draws an ellipse.

GpStatus WINGDIPAPI GdipDrawEllipseI(GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height)

Status Graphics::DrawEllipse(IN const Pen* pen, IN INT x, IN INT y, IN INT width, IN INT height) Draws an ellipse.

GpStatus WINGDIPAPI GdipDrawPie(GpGraphics *graphics, GpPen *pen, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)

Status Graphics::DrawPie(IN const Pen* pen, IN REAL x, IN REAL y, IN REAL width, IN REAL height, IN REAL startAngle, IN REAL sweepAngle) Draws a pie.

GpStatus WINGDIPAPI GdipDrawPieI(GpGraphics *graphics, GpPen *pen, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)

Status Graphics::DrawPie(IN const Pen* pen, IN INT x, IN INT y, IN INT width, IN INT height, IN REAL startAngle, IN REAL sweepAngle) Draws a pie.

GpStatus WINGDIPAPI GdipDrawPolygon(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)

Status Graphics::DrawPolygon(IN const Pen* pen, IN const PointF* points, IN INT count) Draws a polygon.

GpStatus WINGDIPAPI GdipDrawPolygonI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)

Status Graphics::DrawPolygon(IN const Pen* pen, IN const Point* points, IN INT count) Draws a polygon.

GpStatus WINGDIPAPI GdipDrawPath(GpGraphics *graphics, GpPen *pen, GpPath *path)

Status Graphics::DrawPath(IN const Pen* pen, IN const GraphicsPath* path) Draws a sequence of lines and curves defined by a GraphicsPath object.

GpStatus WINGDIPAPI GdipDrawCurve(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)

Status Graphics::DrawCurve(IN const Pen* pen, IN const PointF* points, IN INT count) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipDrawCurveI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)

Status Graphics::DrawCurve(IN const Pen* pen, IN const Point* points, IN INT count) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipDrawCurve2(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, REAL tension)

Status Graphics::DrawCurve(IN const Pen* pen, IN const PointF* points, IN INT count, IN REAL tension) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipDrawCurve2I(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, REAL tension)

Status Graphics::DrawCurve(IN const Pen* pen, IN const Point* points, IN INT count, IN REAL tension) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipDrawCurve3(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, INT offset, INT numberOfSegments, REAL tension)

Not called by wrapper methods.

Not implemented.

GpStatus WINGDIPAPI GdipDrawCurve3I(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, INT offset, INT numberOfSegments, REAL tension)

Not called by wrapper methods.

Not implemented.

GpStatus WINGDIPAPI GdipDrawClosedCurve(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count)

Status Graphics::DrawClosedCurve(IN const Pen* pen, IN const PointF* points, IN INT count) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipDrawClosedCurveI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count)

Status Graphics::DrawClosedCurve(IN const Pen* pen, IN const Point* points, IN INT count) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points, INT count, REAL tension)

Status Graphics::DrawClosedCurve(IN const Pen *pen, IN const PointF* points, IN INT count, IN REAL tension) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipDrawClosedCurve2I(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points, INT count, REAL tension)

Status Graphics::DrawClosedCurve(IN const Pen *pen, IN const Point* points, IN INT count, IN REAL tension) Draws a closed cardinal spline.

GpStatus WINGDIPAPI GdipGraphicsClear(GpGraphics *graphics, ARGB color)

Status Graphics::Clear(IN const Color &color) Clears a Graphics object to a specified color.

GpStatus WINGDIPAPI GdipFillRectangle(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height)

Status Graphics::FillRectangle(IN const Brush* brush, IN REAL x, IN REAL y, IN REAL width, IN REAL height) Uses a brush to fill the interior of a rectangle.

GpStatus WINGDIPAPI GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height)

Status Graphics::FillRectangle(IN const Brush* brush, IN INT x, IN INT y, IN INT width, IN INT height) Uses a brush to fill the interior of a rectangle.

GpStatus WINGDIPAPI GdipFillRectangles(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRectF *rects, INT count)

Not called by wrapper methods.

Not implemented.

GpStatus WINGDIPAPI GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpRect *rects, INT count)

Not called by wrapper methods.

Not implemented.

GpStatus WINGDIPAPI GdipFillPolygon(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count, GpFillMode fillMode)

Status Graphics::FillPolygon(IN const Brush* brush, IN const PointF* points, IN INT count, IN FillMode fillMode) Uses a brush to fill the interior of a polygon.

GpStatus WINGDIPAPI GdipFillPolygonI(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count, GpFillMode fillMode)

Status Graphics::FillPolygon(IN const Brush* brush, IN const Point* points, IN INT count, IN FillMode fillMode) Uses a brush to fill the interior of a polygon.

GpStatus WINGDIPAPI GdipFillPolygon2(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count)

Not called by wrapper methods.

This function fills a polygon with a brush. The points parameter specifies the vertices of the polygon. The count parameter specifies the number of vertices. The brush parameter specifies the brush object used to fill the polygon. The fill mode is FillModeAlternate.

GpStatus WINGDIPAPI GdipFillPolygon2I(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count)

Not called by wrapper methods.

This function fills a polygon with a brush. The points parameter specifies the vertices of the polygon. The count parameter specifies the number of vertices. The brush parameter specifies the brush object used to fill the polygon. The fill mode is FillModeAlternate.

GpStatus WINGDIPAPI GdipFillEllipse(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height)

Status Graphics::FillEllipse(IN const Brush* brush, IN REAL x, IN REAL y, IN REAL width, IN REAL height) Uses a brush to fill the interior of an ellipse that is specified by coordinates and dimensions.

GpStatus WINGDIPAPI GdipFillEllipseI(GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height)

Status Graphics::FillEllipse(IN const Brush* brush, IN INT x, IN INT y, IN INT width, IN INT height) Uses a brush to fill the interior of an ellipse that is specified by coordinates and dimensions.

GpStatus WINGDIPAPI GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y, REAL width, REAL height, REAL startAngle, REAL sweepAngle)

Status Graphics::FillPie(IN const Brush* brush, IN REAL x, IN REAL y, IN REAL width, IN REAL height, IN REAL startAngle, IN REAL sweepAngle) Uses a brush to fill the interior of a pie.

GpStatus WINGDIPAPI GdipFillPieI(GpGraphics *graphics, GpBrush *brush, INT x, INT y, INT width, INT height, REAL startAngle, REAL sweepAngle)

Status Graphics:: FillPie(IN const Brush* brush, IN INT x, IN INT y, IN INT width, IN INT height, IN REAL startAngle, IN REAL sweepAngle) Uses a brush to fill the interior of a pie.

GpStatus WINGDIPAPI GdipFillPath(GpGraphics *graphics, GpBrush *brush, GpPath *path)

Status Graphics::FillPath(IN const Brush* brush, IN const GraphicsPath* path) Uses a brush to fill the interior of a path. If a figure in the path is not closed, this method treats the nonclosed figure as if it were closed by a straight line that connects the figure's starting and ending points.

GpStatus WINGDIPAPI GdipFillClosedCurve(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count)

Status Graphics::FillClosedCurve(IN const Brush* brush, IN const PointF* points, IN INT count) Creates a closed cardinal spline from an array of points and uses a brush to fill the interior of the spline.

GpStatus WINGDIPAPI GdipFillClosedCurveI(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count)

Status Graphics::FillClosedCurve(IN const Brush* brush, IN const Point* points, IN INT count) Creates a closed cardinal spline from an array of points and uses a brush to fill the interior of the spline.

GpStatus WINGDIPAPI GdipFillClosedCurve2(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPointF *points, INT count, REAL tension, GpFillMode fillMode)

Status Graphics::FillClosedCurve(IN const Brush* brush, IN const PointF* points, IN INT count, IN FillMode fillMode, IN REAL tension = 0.5f) Creates a closed cardinal spline from an array of points and uses a brush to fill, according to a specified mode, the interior of the spline.

GpStatus WINGDIPAPI GdipFillClosedCurve2I(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count, REAL tension, GpFillMode fillMode)

Status Graphics::FillClosedCurve(IN const Brush* brush, IN const Point* points, IN INT count, IN FillMode fillMode, IN REAL tension = 0.5f) Creates a closed cardinal spline from an array of points and uses a brush to fill, according to a specified mode, the interior of the spline.

GpStatus WINGDIPAPI GdipFillRegion(GpGraphics *graphics, GpBrush *brush, GpRegion *region)

Status Graphics::FillRegion(IN const Brush* brush, IN const Region* region) Uses a brush to fill a specified region.

GpStatus WINGDIPAPI GdipDrawImage(GpGraphics *graphics, GpImage *image, REAL x, REAL y)

Status Graphics::DrawImage(IN Image* image, IN REAL x, IN REAL y) Draws an image at a specified location.

GpStatus WINGDIPAPI GdipDrawImageI(GpGraphics *graphics, GpImage *image, INT x, INT y)

Status Graphics::DrawImage(IN Image* image, IN INT x, IN INT y) Draws an image at a specified location.

GpStatus WINGDIPAPI GdipDrawImageRect(GpGraphics *graphics, GpImage *image, REAL x, REAL y, REAL width, REAL height)

Status Graphics::DrawImage(IN Image* image, IN REAL x, IN REAL y, IN REAL width, IN REAL height) Draws an image.

GpStatus WINGDIPAPI GdipDrawImageRectI(GpGraphics *graphics, GpImage *image, INT x, INT y, INT width, INT height)

Status Graphics::DrawImage(IN Image* image, IN INT x, IN INT y, IN INT width, IN INT height) Draws an image.

GpStatus WINGDIPAPI GdipDrawImagePoints(GpGraphics *graphics, GpImage *image, GDIPCONST GpPointF *dstpoints, INT count)

Status Graphics::DrawImage(IN Image* image, IN const PointF* destPoints, IN INT count) Draws an image.

GpStatus WINGDIPAPI GdipDrawImagePointsI(GpGraphics *graphics, GpImage *image, GDIPCONST GpPoint *dstpoints, INT count)

Status Graphics::DrawImage(IN Image* image, IN const Point* destPoints, IN INT count) Draws an image.

GpStatus WINGDIPAPI GdipDrawImagePointRect(GpGraphics *graphics, GpImage *image, REAL x, REAL y, REAL srcx, REAL srcy, REAL srcwidth, REAL srcheight, GpUnit srcUnit)

Status Graphics::DrawImage(IN Image* image, IN REAL x, IN REAL y, IN REAL srcx, IN REAL srcy, IN REAL srcwidth, IN REAL srcheight, IN Unit srcUnit) Draws an image.

GpStatus WINGDIPAPI GdipDrawImagePointRectI(GpGraphics *graphics, GpImage *image, INT x, INT y, INT srcx, INT srcy, INT srcwidth, INT srcheight, GpUnit srcUnit)

Status Graphics::DrawImage(IN Image* image, IN INT x, IN INT y, IN INT srcx, IN INT srcy, IN INT srcwidth, IN INT srcheight, IN Unit srcUnit) Draws an image.

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)

Status Graphics::DrawImage(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)

Draws an image.

In the flat function, the dstx, dsty, dstwidth, and dstheight parameters specify a rectangle that corresponds to the dstRect parameter in the wrapper method.

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)

Status Graphics::DrawImage(IN Image* image, IN const Rect& destRect, 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)

Draws an image.

In the flat function, the dstx, dsty, dstwidth, and dstheight parameters specify a rectangle that corresponds to the dstRect parameter in the wrapper method.

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)

Status Graphics::DrawImage(IN Image* image, IN const PointF* destPoints, IN INT count, 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) Draws an image.

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)

Status Graphics::DrawImage(IN Image* image, IN const Point* destPoints, 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) Draws an image.

GpStatus WINGDIPAPI GdipDrawImageFX(GpGraphics *graphics, GpImage *image, GpRectF *source, GpMatrix *xForm, CGpEffect *effect, GpImageAttributes *imageAttributes, GpUnit srcUnit)

Status Graphics::DrawImage(IN Image *image, IN RectF *sourceRect, IN Matrix *xForm, IN Effect *effect, IN ImageAttributes *imageAttributes, IN Unit srcUnit) Draws a portion of an image after applying a specified effect.

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 ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

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 ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

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 ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

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 ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

GpStatus WINGDIPAPI GdipEnumerateMetafileDestPoints( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST PointF * destPoints, INT count, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )

Not called by wrapper methods.

Not implemented.

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 INT count, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPoint( GpGraphics * graphics, GDIPCONST GpMetafile * metafile, GDIPCONST PointF & destPoint, GDIPCONST RectF & srcRect, Unit srcUnit, EnumerateMetafileProc callback, VOID * callbackData, GDIPCONST GpImageAttributes * imageAttributes )

Not called by wrapper methods.

Not implemented.

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 ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

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 ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

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 ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

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 INT count, IN const RectF & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

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 INT count, IN const Rect & srcRect, IN Unit srcUnit, IN EnumerateMetafileProc callback, IN VOID * callbackData = NULL, IN const ImageAttributes * imageAttributes = NULL ) Calls an application-defined callback function for each record in a specified metafile. You can use this method to display a metafile by calling PlayRecord in the callback function.

GpStatus WINGDIPAPI GdipPlayMetafileRecord( GDIPCONST GpMetafile * metafile, EmfPlusRecordType recordType, UINT flags, UINT dataSize, GDIPCONST BYTE * data )

Status Metafile::PlayRecord( IN EmfPlusRecordType recordType, IN UINT flags, IN UINT dataSize, IN const BYTE * data ) const Plays a metafile record.

GpStatus WINGDIPAPI GdipSetClipGraphics(GpGraphics *graphics, GpGraphics *srcgraphics, CombineMode combineMode)

Status Graphics::SetClip(IN const Graphics* g, IN CombineMode combineMode = CombineModeReplace)

Updates the clipping region of this Graphics object to a region that is the combination of itself and the clipping region of another Graphics object.

The g parameter in the wrapper method corresponds to the srcgraphics parameter in the flat function.

GpStatus WINGDIPAPI GdipSetClipRect(GpGraphics *graphics, REAL x, REAL y, REAL width, REAL height, CombineMode combineMode)

Status Graphics::SetClip(IN const RectF& rect, IN CombineMode combineMode = CombineModeReplace)

Updates the clipping region of this Graphics object to a region that is the combination of itself and a rectangle.

The x, y, width, and height parameters in the flat function specify a rectangle that corresponds to the rect parameter in the wrapper method.

GpStatus WINGDIPAPI GdipSetClipRectI(GpGraphics *graphics, INT x, INT y, INT width, INT height, CombineMode combineMode)

Status Graphics::SetClip(IN const Rect& rect, IN CombineMode combineMode = CombineModeReplace)

Updates the clipping region of this Graphics object to a region that is the combination of itself and a rectangle.

The x, y, width, and height parameters in the flat function specify a rectangle that corresponds to the rect parameter in the wrapper method.

GpStatus WINGDIPAPI GdipSetClipPath(GpGraphics *graphics, GpPath *path, CombineMode combineMode)

Status Graphics::SetClip(IN const GraphicsPath* path, IN CombineMode combineMode = CombineModeReplace) Updates the clipping region of this Graphics object to a region that is the combination of itself and the region specified by a graphics path. If a figure in the path is not closed, this method treats the nonclosed figure as if it were closed by a straight line that connects the figure's starting and ending points.

GpStatus WINGDIPAPI GdipSetClipRegion(GpGraphics *graphics, GpRegion *region, CombineMode combineMode)

Status Graphics::SetClip(IN const Region* region, IN CombineMode combineMode = CombineModeReplace) Updates the clipping region of this Graphics object to a region that is the combination of itself and the region specified by a Region object.

GpStatus WINGDIPAPI GdipSetClipHrgn(GpGraphics *graphics, HRGN hRgn, CombineMode combineMode)

Status Graphics::SetClip(IN HRGN hRgn, IN CombineMode combineMode = CombineModeReplace) Updates the clipping region of this Graphics object to a region that is the combination of itself and a Windows Graphics Device Interface (GDI) region

GpStatus WINGDIPAPI GdipResetClip(GpGraphics *graphics)

Status Graphics::ResetClip() Sets the clipping region of this Graphics object to an infinite region.

GpStatus WINGDIPAPI GdipTranslateClip(GpGraphics *graphics, REAL dx, REAL dy)

Status Graphics::TranslateClip(IN REAL dx, IN REAL dy) Translates the clipping region of this Graphics object.

GpStatus WINGDIPAPI GdipTranslateClipI(GpGraphics *graphics, INT dx, INT dy)

Status Graphics::TranslateClip(IN INT dx, IN INT dy) Translates the clipping region of this Graphics object.

GpStatus WINGDIPAPI GdipGetClip(GpGraphics *graphics, GpRegion *region)

Status Graphics::GetClip(OUT Region* region) const Gets the clipping region of this Graphics object.

GpStatus WINGDIPAPI GdipGetClipBounds(GpGraphics *graphics, GpRectF *rect)

Status Graphics::GetClipBounds(OUT RectF* rect) const Gets a rectangle that encloses the clipping region of this Graphics object.

GpStatus WINGDIPAPI GdipGetClipBoundsI(GpGraphics *graphics, GpRect *rect)

Status Graphics::GetClipBounds(OUT Rect* rect) const Gets a rectangle that encloses the clipping region of this Graphics object.

GpStatus WINGDIPAPI GdipIsClipEmpty(GpGraphics *graphics, BOOL *result)

BOOL Graphics::IsClipEmpty() const Determines whether the clipping region of this Graphics object is empty.

GpStatus WINGDIPAPI GdipGetVisibleClipBounds(GpGraphics *graphics, GpRectF *rect)

Status Graphics::GetVisibleClipBounds(OUT RectF *rect) const Gets a rectangle that encloses the visible clipping region of this Graphics object. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

GpStatus WINGDIPAPI GdipGetVisibleClipBoundsI(GpGraphics *graphics, GpRect *rect)

Status Graphics::GetVisibleClipBounds(OUT Rect *rect) const Gets a rectangle that encloses the visible clipping region of this Graphics object. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

GpStatus WINGDIPAPI GdipIsVisibleClipEmpty(GpGraphics *graphics, BOOL *result)

BOOL Graphics::IsVisibleClipEmpty() const Determines whether the visible clipping region of this Graphics object is empty. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

GpStatus WINGDIPAPI GdipIsVisiblePoint(GpGraphics *graphics, REAL x, REAL y, BOOL *result)

BOOL Graphics::IsVisible(IN const PointF& point) const

Determines whether the specified point is inside the visible clipping region of this Graphics object. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

The x and y parameters in the flat function represent the x and y coordinates of a point that corresponds to the point parameter in the wrapper method.

GpStatus WINGDIPAPI GdipIsVisiblePointI(GpGraphics *graphics, INT x, INT y, BOOL *result)

BOOL Graphics::IsVisible(IN const Point& point) const

Determines whether the specified point is inside the visible clipping region of this Graphics object. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

The x and y parameters in the flat function represent the x and y coordinates of a point that corresponds to the point parameter in the wrapper method.

GpStatus WINGDIPAPI GdipIsVisibleRect(GpGraphics *graphics, REAL x, REAL y, REAL width, REAL height, BOOL *result)

BOOL Graphics::IsVisible(IN const RectF& rect) const

Determines whether the specified rectangle intersects the visible clipping region of this Graphics object. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

The x, y, width, and height parameters in the flat function specify a rectangle that corresponds to the rect parameter in the wrapper method.

GpStatus WINGDIPAPI GdipIsVisibleRectI(GpGraphics *graphics, INT x, INT y, INT width, INT height, BOOL *result)

BOOL Graphics::IsVisible(IN const Rect& rect) const

Determines whether the specified rectangle intersects the visible clipping region of this Graphics object. The visible clipping region is the intersection of the clipping region of this Graphics object and the clipping region of the window.

The x, y, width, and height parameters in the flat function specify a rectangle that corresponds to the rect parameter in the wrapper method.

GpStatus WINGDIPAPI GdipSaveGraphics(GpGraphics *graphics, GraphicsState *state)

GraphicsState Graphics::Save() const Saves the current state (transformations, clipping region, and quality settings) of this Graphics object. You can restore the state later by calling the Graphics::Restore method.

GpStatus WINGDIPAPI GdipRestoreGraphics(GpGraphics *graphics, GraphicsState state)

Status Graphics::Restore(IN GraphicsState gstate) Sets the state of this Graphics object to the state stored by a previous call to the Graphics::Save method of this Graphics object.

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) Begins a new graphics container.

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) Begins a new graphics container.

GpStatus WINGDIPAPI GdipBeginContainer2(GpGraphics *graphics, GraphicsContainer* state)

Graphics::GraphicsContainer BeginContainer() Begins a new graphics container.

GpStatus WINGDIPAPI GdipEndContainer(GpGraphics *graphics, GraphicsContainer state)

Status Graphics::EndContainer(IN GraphicsContainer state) Closes a graphics container that was previously opened by the Graphics::BeginContainer method.

GpStatus WINGDIPAPI GdipGetMetafileHeaderFromEmf( HENHMETAFILE hEmf, MetafileHeader * header )

static Status Metafile::GetMetafileHeader( IN HENHMETAFILE hEmf, OUT MetafileHeader * header ) Gets the header.

GpStatus WINGDIPAPI GdipGetMetafileHeaderFromFile( GDIPCONST WCHAR* filename, MetafileHeader * header )

static Status Metafile::GetMetafileHeader( IN const WCHAR* filename, OUT MetafileHeader * header ) Gets the header.

GpStatus WINGDIPAPI GdipGetMetafileHeaderFromStream( IStream * stream, MetafileHeader * header )

static Status Metafile::GetMetafileHeader( IN IStream * stream, OUT MetafileHeader * header ) Gets the header.

GpStatus WINGDIPAPI GdipGetMetafileHeaderFromMetafile( GpMetafile * metafile, MetafileHeader * header )

Status Metafile::GetMetafileHeader( OUT MetafileHeader * header ) const Gets the header.

GpStatus WINGDIPAPI GdipGetHemfFromMetafile( GpMetafile * metafile, HENHMETAFILE * hEmf )

HENHMETAFILE Metafile::GetHENHMETAFILE() Gets a Windows handle to an Enhanced Metafile (EMF) file.

GpStatus WINGDIPAPI GdipCreateStreamOnFile(GDIPCONST WCHAR * filename, UINT access, IStream **stream)

Not called by wrapper methods.

Returns a pointer to an IStream interface based on a file. The filename parameter specifies the file. The access parameter is a set of flags that must include GENERIC_READ or GENERIC_WRITE. The stream parameter receives a pointer to the IStream interface.

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) Creates a Windows GDI+ Metafile::Metafile object for recording. The format will be placeable metafile.

GpStatus WINGDIPAPI GdipCreateMetafileFromEmf(HENHMETAFILE hEmf, BOOL deleteEmf, GpMetafile **metafile)

Metafile::Metafile(IN HENHMETAFILE hEmf, IN BOOL deleteEmf = FALSE) Creates a Windows GDI+ Metafile::Metafile object for playback based on a Windows Graphics Device Interface (GDI) Enhanced Metafile (EMF) file.

GpStatus WINGDIPAPI GdipCreateMetafileFromFile(GDIPCONST WCHAR* file, GpMetafile **metafile)

Metafile::Metafile(IN const WCHAR* filename) Creates a Metafile::Metafile object for playback.

GpStatus WINGDIPAPI GdipCreateMetafileFromWmfFile(GDIPCONST WCHAR* file, GDIPCONST WmfPlaceableFileHeader * wmfPlaceableFileHeader, GpMetafile **metafile)

Not called by wrapper methods.

Not implemented.

GpStatus WINGDIPAPI GdipCreateMetafileFromStream(IStream * stream, GpMetafile **metafile)

Metafile::Metafile(IN IStream* stream) Creates a Metafile::Metafile object from an IStream interface for playback.

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 ) Creates a Metafile::Metafile object for recording.

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 ) Creates a Metafile::Metafile object for recording.

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 ) Creates a Metafile::Metafile object for recording.

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 ) Creates a Metafile::Metafile object for recording.

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 ) Creates a Metafile::Metafile object for recording to an IStream interface.

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 ) Creates a Metafile::Metafile object for recording to an IStream interface.

GpStatus WINGDIPAPI GdipSetMetafileDownLevelRasterizationLimit( GpMetafile * metafile, UINT metafileRasterizationLimitDpi )

Status Metafile::SetDownLevelRasterizationLimit(IN UINT metafileRasterizationLimitDpi) Sets the resolution for certain brush bitmaps that are stored in this metafile.

GpStatus WINGDIPAPI GdipGetMetafileDownLevelRasterizationLimit( GDIPCONST GpMetafile * metafile, UINT * metafileRasterizationLimitDpi )

UINT Metafile::GetDownLevelRasterizationLimit() const Gets the rasterization limit currently set for this metafile. The rasterization limit is the resolution used for certain brush bitmaps that are stored in the metafile. For a detailed explanation of the rasterization limit, see Metafile::SetDownLevelRasterizationLimit.

GpStatus WINGDIPAPI GdipGetImageDecodersSize(UINT *numDecoders, UINT *size)

Status GetImageDecodersSize( OUT UINT *numDecoders, OUT UINT *size) Gets the number of available image decoders and the total size of the array of ImageCodecInfo objects that is returned by the GetImageDecoders function.

GpStatus WINGDIPAPI GdipGetImageDecoders(UINT numDecoders, UINT size, ImageCodecInfo *decoders)

Status GetImageDecoders( IN UINT numDecoders, IN UINT size, OUT ImageCodecInfo *decoders) Gets an array of ImageCodecInfo objects that contain information about the available image decoders.

GpStatus WINGDIPAPI GdipGetImageEncodersSize(UINT *numEncoders, UINT *size)

Status GetImageEncodersSize( OUT UINT *numEncoders, OUT UINT *size) Gets the number of available image encoders and the total size of the array of ImageCodecInfo objects that is returned by the GetImageEncoders function.

GpStatus WINGDIPAPI GdipGetImageEncoders(UINT numEncoders, UINT size, ImageCodecInfo *encoders)

Status GetImageEncoders( IN UINT numEncoders, IN UINT size, OUT ImageCodecInfo *encoders) Gets an array of ImageCodecInfo objects that contain information about the available image encoders.

GpStatus WINGDIPAPI GdipComment(GpGraphics* graphics, UINT sizeData, GDIPCONST BYTE * data)

Status Graphics::AddMetafileComment(IN const BYTE * data, IN UINT sizeData) Adds a text comment to an existing metafile.

 

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft