GetImageDecodersSize function (gdiplusimagecodec.h)

The GetImageDecodersSize function gets the number of available image decoders and the total size of the array of ImageCodecInfo objects that is returned by the GetImageDecoders function.

Syntax

Status GetImageDecodersSize(
  [out] UINT *numDecoders,
  [out] UINT *size
);

Parameters

[out] numDecoders

Type: UINT*

Pointer to a UINT that receives the number of available image decoders.

[out] size

Type: UINT*

Pointer to a UINT that receives the total size, in bytes, of the array of ImageCodecInfo objects that is returned by the GetImageDecoders function.

Return value

Type: Status

If the function succeeds, it returns Ok, which is an element of the Status enumeration.

If the function fails, it returns one of the other elements of the Status enumeration.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusimagecodec.h (include Gdiplus.h)
Library Gdiplus.lib

See also

Bitmap

GetImageDecoders

GetImageEncoders

GetImageEncodersSize

Image

Metafile

Using Image Encoders and Decoders