EncoderParameters class (gdiplusimaging.h)

An EncoderParameters object is an array of EncoderParameter objects along with a data member that specifies the number of EncoderParameter objects in the array.

EncoderParameters has these types of members:


When you create an EncoderParameters object, you must allocate enough memory to hold all of the EncoderParameter objects that will eventually be placed in the array. For example, if you want to create an EncoderParameters object that will hold an array of five EncoderParameter objects, you should use code similar to the following:

EncoderParameters* pEncoderParameters = (EncoderParameters*)
   malloc(sizeof(EncoderParameters) + 4 * sizeof(EncoderParameter));


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

See also





Using Image Encoders and Decoders