ID2D1GdiMetafile1::GetSourceBounds method (d2d1_3.h)

Gets the bounds of the metafile in source space in DIPs. This corresponds
to the frame rect in an EMF/EMF+.

Syntax

HRESULT GetSourceBounds(
  [out] D2D1_RECT_F *bounds
);

Parameters

[out] bounds

Type: D2D1_RECT_F*

The bounds, in DIPs, of the metafile.

Return value

Type: HRESULT

S_OK if successful, otherwise a failure HRESULT.

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

See also

ID2D1GdiMetafile

ID2D1GdiMetafile1

[MS-EMFPLUS]: Enhanced Metafile Format Plus Extensions

[MS-EMF]: Enhanced Metafile Format