EncoderParameters class
Applies to: desktop apps only
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:
Data Members
The following table lists the members exposed by the EncoderParameters object.
Data Members | Type | Description |
---|---|---|
Count | UINT | Number of EncoderParameter objects in the array. |
Parameter | EncoderParameter | Array of EncoderParameter objects. |
Remarks
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));
Requirements
Minimum supported client |
Windows XP, Windows 2000 Professional |
Minimum supported server |
Windows 2000 Server |
Product |
GDI+ 1.0 |
Header |
Gdiplusimaging.h (include Gdiplus.h) |
Library |
Gdiplus.lib |
See also
Image::GetEncoderParameterList
Image::GetEncoderParameterListSize
Using Image Encoders and Decoders
Send comments about this topic to Microsoft
Build date: 3/6/2012