Export (0) Print
Expand All

EncoderParameter Class

Used to pass a value, or an array of values, to an image encoder.

Namespace: System.Drawing.Imaging
Assembly: System.Drawing (in system.drawing.dll)

public sealed class EncoderParameter : IDisposable
public final class EncoderParameter implements IDisposable
public final class EncoderParameter implements IDisposable
Not applicable.

You can also use an EncoderParameter object to receive a list of possible values supported by a particular parameter of a particular image encoder.

The following code example demonstrates how to create a EncoderParameter using the EncoderParameter constructor. 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:\.

System.Object
  System.Drawing.Imaging.EncoderParameter

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft