EncoderParameter Constructor (Encoder^, Int32, Int32)

 

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

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

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

Parameters

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

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

numerator
Type: System::Int32

A 32-bit integer that represents the numerator of a fraction. Must be nonnegative.

denominator
Type: System::Int32

A 32-bit integer that represents the denominator of a fraction. Must be nonnegative.

.NET Framework
Available since 1.1
Return to top
Show: