This documentation is archived and is not being maintained.

ColorMatrix.ColorMatrix(Single[][]) Constructor

Initializes a new instance of the ColorMatrix class using the elements in the specified matrix newColorMatrix.

This constructor is not CLS-compliant.  

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

[CLSCompliantAttribute(false)] 
public:
ColorMatrix (
	array<array<float>^>^ newColorMatrix
)
/** @attribute CLSCompliantAttribute(false) */ 
public ColorMatrix (
	float[][] newColorMatrix
)
CLSCompliantAttribute(false) 
public function ColorMatrix (
	newColorMatrix : float[][]
)
Not applicable.

Parameters

newColorMatrix

The values of the elements for the new ColorMatrix.

The following code example demonstrates how to construct and use a ColorMatrix. To run this example, paste the code into a Windows Form and call RotateColors from the form's Paint event-handling method passing e as PaintEventArgs.

No code example is currently available or this language may not be supported.

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
Show: