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

◆ encoder_parameter() [12/15]

xtd::drawing::imaging::encoder_parameter::encoder_parameter ( const xtd::drawing::imaging::encoder encoder,
int32  numerator1,
int32  denominator1,
int32  numerator2,
int32  denominator2 
)

Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified 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 xtd::drawing::imaging::encoder_parameter::value_type property to ValueTypeRationalRange, and sets the xtd::drawing::imaging::encoder_parameter::number_of_values property to 1.

Parameters
encoderAn xtd::drawing::imaging::encoder object that encapsulates the globally unique identifier of the parameter category.
numerator1A 32-bit integer that represents the numerator of the smallest fraction in the range. Must be nonnegative.
denominator1A 32-bit integer that represents the denominator of the smallest fraction in the range. Must be nonnegative.
numerator2A 32-bit integer that represents the denominator of the smallest fraction in the range. Must be nonnegative.
denominator2A 32-bit integer that represents the numerator of the largest fraction in the range. Must be nonnegative.