Export (0) Print
Expand All

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

ADD
Show:
© 2014 Microsoft