Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

GetImageEncodersSize function

Applies to: desktop apps only

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

numEncoders [out]

Type: UINT*

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

size [out]

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.

Examples

For a code example, see GetImageDecoders.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusimagecodec.h (include Gdiplus.h)

Library

Gdiplus.lib

See also

Bitmap
GetImageDecoders
GetImageDecodersSize
GetImageEncoders
Image
Metafile
Using Image Encoders and Decoders

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.