GetImageEncodersSize function (gdiplusimagecodec.h)

The GetImageEncodersSize function gets the number of available image encoders and the total size of the array of ImageCodecInfo objects that is returned by the GetImageEncoders function.

Syntax

Status GetImageEncodersSize(
  [out] UINT *numEncoders,
  [out] UINT *size
);

Parameters

[out] numEncoders

Type: UINT*

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

[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 GetImageEncoders.

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

GetImageDecodersSize

GetImageEncoders

Image

Metafile

Using Image Encoders and Decoders