GetImageEncodersSize function

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(
  UINT *numEncoders,
  UINT *size
);

Parameters

numEncoders

Type: UINT*

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

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: 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

   
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