EncoderParameters Constructor ()
.NET Framework (current version)
Initializes a new instance of the EncoderParameters class that can contain one EncoderParameter object.
Assembly: System.Drawing (in System.Drawing.dll)
Some of the Save and SaveAdd methods receive an EncoderParameters object as an argument. The GetEncoderParameterList method returns an EncoderParameters object.
The following code example demonstrates how to create and use a EncoderParameters object. To run this example, paste the code into a Windows Form and call the VaryQualityLevel method from the form's constructor. This example requires an image file named TestPhoto.jpg located at c:\.
.NET Framework
Available since 1.1
Available since 1.1
Show: