System.Drawing.Imaging.EncoderParameter Members

The members of System.Drawing.Imaging.EncoderParameter are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and one unsigned 8-bit integer. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeByte, and sets the EncoderParameter.NumberOfValues property to 1.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and an array of unsigned 8-bit integers. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeByte, and sets the EncoderParameter.NumberOfValues property to the number of elements in the array.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and one, 16-bit integer. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeShort, and sets the EncoderParameter.NumberOfValues property to 1.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and an array of 16-bit integers. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeShort, and sets the EncoderParameter.NumberOfValues property to the number of elements in the array.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and one 64-bit integer. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeLong (32 bits), and sets the EncoderParameter.NumberOfValues property to 1.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and an array of 64-bit integers. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeLong (32-bit), and sets the EncoderParameter.NumberOfValues property to the number of elements in the array.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and a character string. The string is converted to a null-terminated ASCII string before it is stored in the System.Drawing.Imaging.EncoderParameter object. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeAscii, and sets the EncoderParameter.NumberOfValues property to the length of the ASCII string including the NULL terminator.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and one 8-bit value. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeUndefined or EncoderParameterValueType.ValueTypeByte, and sets the EncoderParameter.NumberOfValues property to 1.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and an array of bytes. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeUndefined or EncoderParameterValueType.ValueTypeByte, and sets the EncoderParameter.NumberOfValues property to the number of elements in the array.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and a pair of 32-bit integers. The pair of integers represents a fraction, the first integer being the numerator, and the second integer being the denominator. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeRational, and sets the EncoderParameter.NumberOfValues property to 1.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and two arrays of 32-bit integers. The two arrays represent an array of fractions. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeRational, and sets the EncoderParameter.NumberOfValues property to the number of elements in the numerator array, which must be the same as the number of elements in the denominator array.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and a pair of 64-bit integers. The pair of integers represents a range of integers, the first integer being the smallest number in the range, and the second integer being the largest number in the range. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeLongRange, and sets the EncoderParameter.NumberOfValues property to 1.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and two arrays of 64-bit integers. The two arrays represent an array integer ranges. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeLongRange, and sets the EncoderParameter.NumberOfValues property to the number of elements in the rangebegin array, which must be the same as the number of elements in the rangeend array.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and three integers that specify the number of values, the data type of the values, and a pointer to the values stored in the System.Drawing.Imaging.EncoderParameter object.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and four, 32-bit integers. The four integers represent a range of fractions. The first two integers represent the smallest fraction in the range, and the remaining two integers represent the largest fraction in the range. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeRationalRange, and sets the EncoderParameter.NumberOfValues property to 1.

Initializes a new instance of the System.Drawing.Imaging.EncoderParameter class with the specified System.Drawing.Imaging.Encoder object and four arrays of 32-bit integers. The four arrays represent an array rational ranges. A rational range is the set of all fractions from a minimum fractional value through a maximum fractional value. Sets the EncoderParameter.ValueType property to EncoderParameterValueType.ValueTypeRationalRange, and sets the EncoderParameter.NumberOfValues property to the number of elements in the numerator1 array, which must be the same as the number of elements in the other three arrays.

Public Properties

EncoderEncoder.

Gets or sets the System.Drawing.Imaging.Encoder object associated with this System.Drawing.Imaging.EncoderParameter object. The System.Drawing.Imaging.Encoder object encapsulates the globally unique identifier (GUID) that specifies the category (for example Encoder.Quality, Encoder.ColorDepth, or Encoder.Compression) of the parameter stored in this System.Drawing.Imaging.EncoderParameter object.

[read-only]
NumberOfValuesint.

Gets the number of elements in the array of values stored in this System.Drawing.Imaging.EncoderParameter object.

[read-only]
TypeEncoderParameterValueType.

Gets the data type of the values stored in this System.Drawing.Imaging.EncoderParameter object.

[read-only]
ValueTypeEncoderParameterValueType.

Gets the data type of the values stored in this System.Drawing.Imaging.EncoderParameter object.

Public Methods

Dispose()

Releases all resources used by this System.Drawing.Imaging.EncoderParameter object.

Finalize()

Allows an System.Drawing.Imaging.EncoderParameter object to attempt to free resources and perform other cleanup operations before the System.Drawing.Imaging.EncoderParameter object is reclaimed by garbage collection.