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

IWICBitmapSourceTransform::GetClosestSize method

Returns the closest dimensions the implementation can natively scale to given the desired dimensions.

Syntax


HRESULT GetClosestSize(
  [in, out]  UINT *puiWidth,
  [in, out]  UINT *puiHeight
);

Parameters

puiWidth [in, out]

Type: UINT*

The desired width. A pointer that receives the closest supported width.

puiHeight [in, out]

Type: UINT*

The desired height. A pointer that receives the closest supported height.

Return value

Type: HRESULT

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

Remarks

The Windows provided codecs provide the following support for native scaling:

  • BMP, ICO, GIF, TIFF: No implementation of IWICBitmapSourceTransform.
  • PNG: No scaling support.
  • JPEG: Native down-scaling by a factor of 8, 4, or 2.
  • JPEG-XR: Native scaling of the original image by powers of 2.

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

 

 

커뮤니티 추가 항목

추가
표시:
© 2014 Microsoft