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

◆ encoder_parameter() [11/15]

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

Initializes a new instance of the xtd::drawing::imaging::encoder_parameter class with the specified xtd::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 xtd::drawing::imaging::encoder_parameter::value_type property to xtd::drawing::imaging::encoder_parameter_value_type:value_type_rational, 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.
numeratorA 32-bit integer that represents the numerator of a fraction. Must be nonnegative.
denominatorA 32-bit integer that represents the denominator of a fraction. Must be nonnegative.