Encoder Class
An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an image encoder parameter.
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.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (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 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
