ID2D1CommandSink2::DrawGdiMetafile method (d2d1_3.h)
Draws a metafile to the command sink using the given source and destination rectangles.
Syntax
HRESULT DrawGdiMetafile(
[in] ID2D1GdiMetafile *gdiMetafile,
[in] const D2D1_RECT_F *destinationRectangle,
[in] const D2D1_RECT_F *sourceRectangle
);
Parameters
[in] gdiMetafile
Type: ID2D1GdiMetafile*
The metafile to draw.
[in] destinationRectangle
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.
[in] sourceRectangle
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
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2016 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d2d1_3.h |
DLL | D2d1.dll |