Export (0) Print
Expand All

EncoderValue Enumeration

Used to specify the parameter value passed to a JPEG or TIFF image encoder when using the Image.Save or Image.SaveAdd methods.

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

public enum EncoderValue

Member nameDescription
ColorTypeCMYKNot used in GDI+ version 1.0.
ColorTypeYCCKNot used in GDI+ version 1.0.
CompressionLZWSpecifies the LZW compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the Compression category.
CompressionCCITT3Specifies the CCITT3 compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.
CompressionCCITT4Specifies the CCITT4 compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.
CompressionRleSpecifies the RLE compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.
CompressionNoneSpecifies no compression. Can be passed to the TIFF encoder as a parameter that belongs to the compression category.
ScanMethodInterlacedNot used in GDI+ version 1.0.
ScanMethodNonInterlacedNot used in GDI+ version 1.0.
VersionGif87Not used in GDI+ version 1.0.
VersionGif89Not used in GDI+ version 1.0.
RenderProgressiveNot used in GDI+ version 1.0.
RenderNonProgressiveNot used in GDI+ version 1.0.
TransformRotate90Specifies 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.
TransformRotate180Specifies 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.
TransformRotate270Specifies 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.
TransformFlipHorizontalSpecifies 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.
TransformFlipVerticalSpecifies 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.
MultiFrameSpecifies 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.
LastFrameSpecifies 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.
FlushSpecifies 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.
FrameDimensionTimeNot used in GDI+ version 1.0.
FrameDimensionResolutionNot used in GDI+ version 1.0.
FrameDimensionPageSpecifies 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.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

Community Additions

ADD
Show:
© 2014 Microsoft