Represents a color matrix. This class cannot be inherited.
public sealed class ColorMatrix: Object
ObjectColorMatrix
// This examples shows how to create and initialize a ColorMatrix.
using System;
using System.Diagnostics;
using System.Drawing.Filters;
public class SampleColorMatrix
{
static void Main()
{
// Creates a new ColorMatrix.
ColorMatrix colMat = new ColorMatrix();
// Sets some elements of the ColorMatrix.
colMat[4]=255;
colMat[9]=80;
colMat[2,4]=50;
// Displays the content of the ColorMatrix.
Debug.WriteLine("\nColor matrix:" +colMat
.ToString());}
}
/*
The output of the sample:
Color matrix:[1,0,0,0,255,0,1,0,0,80,0,0,1,0,50,0,0,0,1,0]
*/
Namespace System.Drawing.Filters Flash Library System.Windows.Forms.scl Flash Library Version 2.0.0.2118 Silverlight Library System.Windows.Forms.dll
| © 2003-2007 NETiKA Technologies. All rights reserved. |