ID2D1GdiMetafile1::GetSourceBounds method

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

bounds [out]

Type: D2D1_RECT_F*

The bounds, in DIPs, of the metafile.

Return value

Type: HRESULT

S_OK if successful, otherwise a failure HRESULT.

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

ID2D1GdiMetafile1
ID2D1GdiMetafile
[MS-EMF]: Enhanced Metafile Format
[MS-EMFPLUS]: Enhanced Metafile Format Plus Extensions

 

 

Show: