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

 

Initializes a new instance of the EncoderParameter class with the specified Encoder object and two arrays of 32-bit integers. The two arrays represent an array of fractions. Sets the ValueType property to ValueTypeRational, and sets the 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.

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

public:
EncoderParameter(
	Encoder^ encoder,
	array<int>^ numerator,
	array<int>^ denominator
)

Parameters

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

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

numerator
Type: array<System::Int32>^

An array of 32-bit integers that specifies the numerators of the fractions. The integers in the array must be nonnegative.

denominator
Type: array<System::Int32>^

An array of 32-bit integers that specifies the denominators of the fractions. The integers in the array must be nonnegative. A denominator of a given index is paired with the numerator of the same index.

.NET Framework
Available since 1.1
Return to top
Show: