ID2D1CommandSink2::DrawGdiMetafile method

Draws a metafile to the command sink using the given source and destination rectangles.

Syntax


void DrawGdiMetafile(
  [in]       ID2D1GdiMetafile *gdiMetafile,
  [inconst D2D1_RECT_F      *destinationRectangle,
  [inconst D2D1_RECT_F      *sourceRectangle
);

Parameters

gdiMetafile [in]

Type: ID2D1GdiMetafile*

The metafile to draw.

destinationRectangle [in]

Type: const D2D1_RECT_F*

The rectangle in the target where the metafile will be drawn, relative to the upper left corner (defined in DIPs). If NULL is specified, the destination rectangle is the size of the target.

sourceRectangle [in]

Type: const D2D1_RECT_F*

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

Return value

This method does not return a value.

Requirements

Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | Windows Store apps]

Minimum supported phone

Windows 10 Mobile

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1CommandSink2

 

 

Show: