# EncoderParameterValueType Enum

## Definition

Used to specify the data type of the EncoderParameter used with the Save or SaveAdd method of an image.

`public enum class EncoderParameterValueType`

`public enum EncoderParameterValueType`

`type EncoderParameterValueType = `

`Public Enum EncoderParameterValueType`

- Inheritance

## Fields

ValueTypeAscii | 2 | Specifies that the array of values is a null-terminated ASCII character string. Note that the |

ValueTypeByte | 1 | Specifies that each value in the array is an 8-bit unsigned integer. |

ValueTypeLong | 4 | Specifies that each value in the array is a 32-bit unsigned integer. |

ValueTypeLongRange | 6 | Specifies that each value in the array is a pair of 32-bit unsigned integers. Each pair represents a range of numbers. |

ValueTypeRational | 5 | Specifies that each value in the array is a pair of 32-bit unsigned integers. Each pair represents a fraction, the first integer being the numerator and the second integer being the denominator. |

ValueTypeRationalRange | 8 | Specifies that each value in the array is a set of four, 32-bit unsigned integers. The first two integers represent one fraction, and the second two integers represent a second fraction. The two fractions represent a range of rational numbers. The first fraction is the smallest rational number in the range, and the second fraction is the largest rational number in the range. |

ValueTypeShort | 3 | Specifies that each value in the array is a 16-bit, unsigned integer. |

ValueTypeUndefined | 7 | Specifies that the array of values is an array of bytes that has no data type defined. |

## Remarks

GDI+ uses image encoders to convert the images stored in Bitmap objects to various file formats. Image encoders are built into GDI+ for the BMP, JPEG, GIF, TIFF, and PNG formats. An encoder is invoked when you call the Save or SaveAdd method of a Bitmap object.

The NumberOfValues data member of the EncoderParameter object indicates the length of the character string including the `null`

terminator.