EncoderParameter Constructor (Encoder, Int32, EncoderParameterValueType, IntPtr)

.NET Framework (current version)

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

Initializes a new instance of the EncoderParameter class with the specified Encoder object, number of values, 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)

public EncoderParameter(
	Encoder encoder,
	int numberValues,
	EncoderParameterValueType type,
	IntPtr value


Type: System.Drawing.Imaging.Encoder

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

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: System.Drawing.Imaging.EncoderParameterValueType

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.

Type: System.IntPtr

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

.NET Framework
Available since 4.5
Return to top