Table of Contents

Method DrawGdiMetafile

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

DrawGdiMetafile(IGdiMetafile, Point2Float?)

Draw a metafile to the device context.

void DrawGdiMetafile(IGdiMetafile gdiMetafile, Point2Float? targetOffset = null)

Parameters

gdiMetafile IGdiMetafile

The metafile to draw.

targetOffset Point2Float?

The offset from the upper left corner of the render target.

DrawGdiMetafile(IGdiMetafile, RectFloat, in RectFloat?)

Draws a metafile to the device context using the given source and destination rectangles.

void DrawGdiMetafile(IGdiMetafile gdiMetafile, RectFloat destinationRectangle, in RectFloat? sourceRectangle = null)

Parameters

gdiMetafile IGdiMetafile

The metafile to draw.

destinationRectangle RectFloat

The rectangle in the target where the metafile will be drawn, relative to the upper left corner (defined in DIPs) of the render target. If null is specified, the destination rectangle is {0, 0, w, h}, where w and h are the width and height of the metafile as reported by Bounds.

sourceRectangle RectFloat?

The rectangle of the source metafile that will be drawn, relative to the upper left corner (defined in DIPs) of the metafile. If null is specified, the source rectangle is the value returned by SourceBounds.