Export (0) Print
Expand All

EncoderParameterValueType Enumeration

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. And encoder is invoked when you call the Save or SaveAdd method of a Bitmap object.

[Visual Basic]
<Serializable>
Public Enum EncoderParameterValueType
[C#]
[Serializable]
public enum EncoderParameterValueType
[C++]
[Serializable]
__value public enum EncoderParameterValueType
[JScript]
public
   Serializable
enum EncoderParameterValueType

Members

Member name Description
ValueTypeAscii Specifies that the array of values is a null-terminated ASCII character string. Note that the NumberOfValues data member of the EncoderParameter object indicates the length of the character string including the NULL terminator.
ValueTypeByte Specifies that each value in the array is an 8-bit unsigned integer.
ValueTypeLong Specifies that each value in the array is a 32-bit unsigned integer.
ValueTypeLongRange Specifies that each value in the array is a pair of 32-bit unsigned integers. Each pair represents a range of numbers.
ValueTypeRational 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 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 Specifies that each value in the array is a 16-bit, unsigned integer.
ValueTypeUndefined Specifies that the array of values is an array of bytes that has no data type defined.

Requirements

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

System.Drawing.Imaging Namespace

Show:
© 2014 Microsoft