Encoder Class
An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an image encoder parameter.
Namespace: System.Drawing.Imaging
Assembly: System.Drawing (in System.Drawing.dll)
The Encoder type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ChrominanceTable | An Encoder object that is initialized with the globally unique identifier for the chrominance table parameter category. |
![]() ![]() | ColorDepth | An Encoder object that is initialized with the globally unique identifier for the color depth parameter category. |
![]() ![]() | Compression | An Encoder object that is initialized with the globally unique identifier for the compression parameter category. |
![]() ![]() | LuminanceTable | Represents an Encoder object that is initialized with the globally unique identifier for the luminance table parameter category. |
![]() ![]() | Quality | Gets an Encoder object that is initialized with the globally unique identifier for the quality parameter category. |
![]() ![]() | RenderMethod | Represents an Encoder object that is initialized with the globally unique identifier for the render method parameter category. |
![]() ![]() | SaveFlag | Represents an Encoder object that is initialized with the globally unique identifier for the save flag parameter category. |
![]() ![]() | ScanMethod | Represents an Encoder object that is initialized with the globally unique identifier for the scan method parameter category. |
![]() ![]() | Transformation | Represents an Encoder object that is initialized with the globally unique identifier for the transformation parameter category. |
![]() ![]() | Version | Represents an Encoder object that is initialized with the globally unique identifier for the version parameter category. |
When you pass a parameter to an image encoder, the parameter is encapsulated in an EncoderParameter object. One of the fields of the EncoderParameter object is a GUID that specifies the category of the parameter. Use the static fields of the Encoder class to retrieve an Encoder that contains parameters of the desired category.
The image encoders that are built into GDI+ receive parameters that belong to several categories. The following table lists all the categories and the GUID associated with each category.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
