xtd 0.2.0
Loading...
Searching...
No Matches

◆ encoder_parameter() [13/15]

xtd::drawing::imaging::encoder_parameter::encoder_parameter ( const xtd::drawing::imaging::encoder encoder,
std::vector< int32 numerator,
std::vector< int32 denominator 
)

Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified Encoder object and two arrays of 32-bit integers. The two arrays represent an array of fractions. Sets the xtd::drawing::imaging::encoder_parameter::value_type property to ValueTypeRational, and sets the xtd::drawing::imaging::encoder_parameter::number_of_values property to the number of elements in the numerator array, which must be the same as the number of elements in the denominator array.

Parameters
encoderAn xtd::drawing::imaging::encoder object that encapsulates the globally unique identifier of the parameter category.
numeratorAn array of 32-bit integers that specifies the numerators of the fractions. The integers in the array must be nonnegative.
denominator1An 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.