System.Drawing.Imaging.EncoderValue Enumeration

Used to specify the parameter value passed to a JPEG or TIFF image encoder when using the System.Drawing.Image.Save(string, ImageCodecInfo, EncoderParameters) or System.Drawing.Image.SaveAdd(EncoderParameters) methods.

Syntax

public enum EncoderValue

Remarks

When you call the System.Drawing.Image.Save(System.IO.Stream, ImageCodecInfo, EncoderParameters) or System.Drawing.Image.SaveAdd(System.Drawing.Image, EncoderParameters) method of an System.Drawing.Image object, you can pass parameters to the image encoder by passing an System.Drawing.Imaging.EncoderParameters object to the erload:System.Drawing.Image.Save or erload:System.Drawing.Image.SaveAdd method. An System.Drawing.Imaging.EncoderParameters object contains an array of System.Drawing.Imaging.EncoderParameter objects. Each System.Drawing.Imaging.EncoderParameter object has an array of values and an System.Drawing.Imaging.Encoder property that specifies the parameter category. The System.Drawing.Imaging.EncoderValue enumeration provides names for some of the values that can be passed to the JPEG and TIFF image encoders.

Members

Member NameDescription
ColorTypeCMYK

Not used in GDI+ version 1.0.

ColorTypeYCCK

Not used in GDI+ version 1.0.

CompressionCCITT3

Specifies the CCITT3 compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.

CompressionCCITT4

Specifies the CCITT4 compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.

CompressionLZW

Specifies the LZW compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the Compression category.

CompressionNone

Specifies no compression. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.

CompressionRle

Specifies the RLE compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.

Flush

Specifies that a multiple-frame file or stream should be closed. Can be passed to the TIFF encoder as a parameter that belongs to the save flag category.

FrameDimensionPage

Specifies that a frame is to be added to the page dimension of an image. Can be passed to the TIFF encoder as a parameter that belongs to the save flag category.

FrameDimensionResolution

Not used in GDI+ version 1.0.

FrameDimensionTime

Not used in GDI+ version 1.0.

LastFrame

Specifies the last frame in a multiple-frame image. Can be passed to the TIFF encoder as a parameter that belongs to the save flag category.

MultiFrame

Specifies that the image has more than one frame (page). Can be passed to the TIFF encoder as a parameter that belongs to the save flag category.

RenderNonProgressive

Not used in GDI+ version 1.0.

RenderProgressive

Not used in GDI+ version 1.0.

ScanMethodInterlaced

Not used in GDI+ version 1.0.

ScanMethodNonInterlaced

Not used in GDI+ version 1.0.

TransformFlipHorizontal

Specifies that the image is to be flipped horizontally (about the vertical axis). Can be passed to the JPEG encoder as a parameter that belongs to the transformation category.

TransformFlipVertical

Specifies that the image is to be flipped vertically (about the horizontal axis). Can be passed to the JPEG encoder as a parameter that belongs to the transformation category.

TransformRotate180

Specifies that the image is to be rotated 180 degrees about its center. Can be passed to the JPEG encoder as a parameter that belongs to the transformation category.

TransformRotate270

Specifies that the image is to be rotated clockwise 270 degrees about its center. Can be passed to the JPEG encoder as a parameter that belongs to the transformation category.

TransformRotate90

Specifies that the image is to be rotated clockwise 90 degrees about its center. Can be passed to the JPEG encoder as a parameter that belongs to the transformation category.

VersionGif87

Not used in GDI+ version 1.0.

VersionGif89

Not used in GDI+ version 1.0.

Requirements

Namespace: System.Drawing.Imaging
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0