This documentation is archived and is not being maintained.

Encoder Class

An Encoder object encapsulates a globally unique identifier (GUID) that identifies the category of an image encoder parameter.

For a list of all members of this type, see Encoder Members.


[Visual Basic]
NotInheritable Public Class Encoder
public sealed class Encoder
public __gc __sealed class Encoder
public class Encoder

Thread Safety

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


When you pass a parameter to an image encoder, the parameter is encapsulated in an EncoderParameter object. One of the private fields of the EncoderParameter object is a GUID that specifies the category of the parameter. The image encoders that are built into GDI+ receive parameters that belong to the following categories:


Namespace: System.Drawing.Imaging

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

Encoder Members | System.Drawing.Imaging Namespace