EncoderValue Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used to specify the parameter value passed to a JPEG or TIFF image encoder when using the Save(String, ImageCodecInfo, EncoderParameters) or SaveAdd(EncoderParameters) methods.
public enum class EncoderValue
public enum EncoderValue
type EncoderValue =
Public Enum EncoderValue
- Inheritance
Name | Value | Description |
---|---|---|
ColorTypeCMYK | 0 | Not used in GDI+ version 1.0. |
ColorTypeYCCK | 1 | Not used in GDI+ version 1.0. |
CompressionLZW | 2 | Specifies the LZW compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the Compression category. |
CompressionCCITT3 | 3 | Specifies the CCITT3 compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category. |
CompressionCCITT4 | 4 | Specifies the CCITT4 compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category. |
CompressionRle | 5 | Specifies the RLE compression scheme. Can be passed to the TIFF encoder as a parameter that belongs to the compression category. |
CompressionNone | 6 | Specifies no compression. Can be passed to the TIFF encoder as a parameter that belongs to the compression category. |
ScanMethodInterlaced | 7 | Not used in GDI+ version 1.0. |
ScanMethodNonInterlaced | 8 | Not used in GDI+ version 1.0. |
VersionGif87 | 9 | Not used in GDI+ version 1.0. |
VersionGif89 | 10 | Not used in GDI+ version 1.0. |
RenderProgressive | 11 | Not used in GDI+ version 1.0. |
RenderNonProgressive | 12 | Not used in GDI+ version 1.0. |
TransformRotate90 | 13 | 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. |
TransformRotate180 | 14 | 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 | 15 | 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. |
TransformFlipHorizontal | 16 | 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 | 17 | 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. |
MultiFrame | 18 | 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. |
LastFrame | 19 | 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. |
Flush | 20 | 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. |
FrameDimensionTime | 21 | Not used in GDI+ version 1.0. |
FrameDimensionResolution | 22 | Not used in GDI+ version 1.0. |
FrameDimensionPage | 23 | 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. |
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.
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: