Name

EncoderParameters

Synopsis

This class implements a collection of EncoderParameter objects. It is used to pass a set of parameters to the Image.Save() method.

Unlike regular collection classes, you can only get or set the contents through the Param property.


public sealed class EncoderParameters : IDisposable {

// Public Constructors

   public EncoderParameters();

   public EncoderParameters(int count);

// Public Instance Properties

   public EncoderParameter[ ] Param{set; get; }

// Public Instance Methods

   public void Dispose();  // implements IDisposable

}

Returned By

System.Drawing.Image.GetEncoderParameterList()

Passed To

System.Drawing.Image.{Save(), SaveAdd()}

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.