EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

IWICBitmapFrameEncode::SetResolution method

Sets the physical resolution of the output image.

Syntax


HRESULT SetResolution(
  [in]  double dpiX,
  [in]  double dpiY
);

Parameters

dpiX [in]

Type: double

The horizontal resolution value.

dpiY [in]

Type: double

The vertical resolution value.

Return value

Type: HRESULT

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

Remarks

Windows Imaging Component (WIC) doesn't perform any special processing as a result of DPI resolution values. For example, data returned from IWICBitmapSource::CopyPixels isn't scaled by the DPI. The app must handle DPI resolution.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft