Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IWICBitmapSourceTransform::GetClosestPixelFormat method

Retrieves the closest pixel format to which the implementation of IWICBitmapSourceTransform can natively copy pixels, given a desired format.

Syntax


HRESULT GetClosestPixelFormat(
  [in, out] WICPixelFormatGUID *pguidDstFormat
);

Parameters

pguidDstFormat [in, out]

Type: WICPixelFormatGUID*

A pointer that receives the GUID of the pixel format that is the closest supported pixel format of the desired format.

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:

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

 

 

Community Additions

Show:
© 2015 Microsoft