ID2D1GdiMetafile1::GetDpi method

Gets the DPI reported by the metafile.

Syntax


HRESULT GetDpi(
  [out] FLOAT *dpiX,
  [out] FLOAT *dpiY
);

Parameters

dpiX [out]

Type: FLOAT*

Receives the horizontal DPI reported by the metafile.

dpiY [out]

Type: FLOAT*

Receives the vertical DPI reported by the metafile.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 10 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2016 [desktop apps | UWP apps]

Minimum supported phone

Windows 10 Mobile

Header

D2d1_3.h

DLL

D2d1.dll

See also

ID2D1GdiMetafile1
ID2D1GdiMetafile1

 

 

Show: