Windows apps
Collapse the table of content
Expand the table of content
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.

IWICPlanarFormatConverter::CanConvert method

Query if the format converter can convert from one format to another.

Syntax


HRESULT CanConvert(
  [in]  const WICPixelFormatGUID     *pSrcPixelFormats,
              UINT                   cSrcPlanes,
  [in]        REFWICPixelFormatGUID  dstPixelFormat,
  [out]       BOOL                   *pfCanConvert
);

Parameters

pSrcPixelFormats [in]

An array of WIC pixel formats that represents source image planes.

cSrcPlanes

The number of source pixel formats specified by the pSrcFormats parameter.

dstPixelFormat [in]

The destination interleaved pixel format.

pfCanConvert [out]

True if the conversion is supported.

Return value

If the conversion is not supported, this method returns S_OK, but *pfCanConvert is set to FALSE.

If this method fails, the out parameter pfCanConvert is invalid.

Remarks

To specify an interleaved input pixel format, provide a length 1 array to pSrcPixelFormats.

Requirements

Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Header

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

See also

IWICPlanarFormatConverter

 

 

Show:
© 2017 Microsoft