EncoderParameter Constructor (Encoder, Int32, Int32, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

obsoleteCodeEntityM:System.Drawing.Imaging.EncoderParameter.#ctor(System.Drawing.Imaging.Encoder,System.Int32,System.Drawing.Imaging.EncoderParameterValueType,System.IntPtr) Note: This API is now obsolete.

Initializes a new instance of the EncoderParameter class with the specified Encoder object and three integers that specify the number of values, the data type of the values, and a pointer to the values stored in the EncoderParameter object.

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

[ObsoleteAttribute("This constructor has been deprecated. Use EncoderParameter(Encoder encoder, int numberValues, EncoderParameterValueType type, IntPtr value) instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public EncoderParameter(
	Encoder encoder,
	int NumberOfValues,
	int Type,
	int Value
)

Parameters

encoder
Type: System.Drawing.Imaging.Encoder

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

NumberOfValues
Type: System.Int32

An integer that specifies the number of values stored in the EncoderParameter object. The NumberOfValues property is set to this value.

Type
Type: System.Int32

A member of the EncoderParameterValueType enumeration that specifies the data type of the values stored in the EncoderParameter object. The Type and ValueType properties are set to this value.

Value
Type: System.Int32

A pointer to an array of values of the type specified by the Type parameter.

Exception Condition
InvalidOperationException

Type is not a valid EncoderParameterValueType.

.NET Framework
Available since 1.1
Return to top
Show: