EncoderParameter Constructor (Encoder^, Int64)
Initializes a new instance of the EncoderParameter class with the specified Encoder object and one 64-bit integer. Sets the ValueType property to ValueTypeLong (32 bits), and sets the NumberOfValues property to 1.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- encoder
-
Type:
System.Drawing.Imaging::Encoder^
An Encoder object that encapsulates the globally unique identifier of the parameter category.
- value
-
Type:
System::Int64
A 64-bit integer that specifies the value stored in the EncoderParameter object. Must be nonnegative. This parameter is converted to a 32-bit integer before it is stored in the EncoderParameter object.
The following code example demonstrates how to create a EncoderParameter using the EncoderParameter constructor. To run this example, paste the code into a Windows Form and call the VaryQualityLevel method from the form's constructor. This example requires an image file named TestPhoto.jpg located at c:\.
Available since 1.1