ID2D1GdiMetafile1::GetDpi method (d2d1_3.h)

Gets the DPI reported by the metafile.

Syntax

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

Parameters

[out] dpiX

Type: FLOAT*

Receives the horizontal DPI reported by the metafile.

[out] dpiY

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

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

ID2D1GdiMetafile1