EncoderParameter Constructor (Encoder^, array<Int32>^, array<Int32>^, array<Int32>^, array<Int32>^)

 

Initializes a new instance of the EncoderParameter class with the specified 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 ValueType property to ValueTypeRationalRange, and sets the 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.

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

public:
EncoderParameter(
	Encoder^ encoder,
	array<int>^ numerator1,
	array<int>^ denominator1,
	array<int>^ numerator2,
	array<int>^ denominator2
)

Parameters

encoder
Type: System.Drawing.Imaging::Encoder^

An Encoder object that encapsulates the globally unique identifier of the parameter category.

numerator1
Type: array<System::Int32>^

An array of 32-bit integers that specifies the numerators of the minimum values for the ranges. The integers in the array must be nonnegative.

denominator1
Type: array<System::Int32>^

An array of 32-bit integers that specifies the denominators of the minimum values for the ranges. The integers in the array must be nonnegative.

numerator2
Type: array<System::Int32>^

An array of 32-bit integers that specifies the numerators of the maximum values for the ranges. The integers in the array must be nonnegative.

denominator2
Type: array<System::Int32>^

An array of 32-bit integers that specifies the denominators of the maximum values for the ranges. The integers in the array must be nonnegative.

The ith range consists of all fractional numbers from numerator1[i]/denominator1[i] through numerator2[i]/denominator2[i].

.NET Framework
Available since 1.1
Return to top
Show: