EncoderParameter.EncoderParameter(Encoder, Byte[], Boolean) Constructor

Initializes a new instance of the EncoderParameter class with the specified Encoder object and an array of bytes. Sets the ValueType property to ValueTypeUndefined or ValueTypeByte, and sets the NumberOfValues property to the number of elements in the array.

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

public EncoderParameter (
	Encoder encoder,
	byte[] value,
	bool undefined
public EncoderParameter (
	Encoder encoder, 
	byte[] value, 
	boolean undefined
public function EncoderParameter (
	encoder : Encoder, 
	value : byte[], 
	undefined : boolean
Not applicable.



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


An array of bytes that specifies the values stored in the EncoderParameter object.


If true, the ValueType property is set to ValueTypeUndefined; otherwise, the ValueType property is set to ValueTypeByte.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions