GOA - System.Drawing.Filters.ColorMatrix

ColorMatrix Class


Represents a color matrix. This class cannot be inherited.

Definition

public sealed class ColorMatrix: Object

Members Table

MethodDescription
ColorMatrixOverloaded. Initializes a new instance of ColorMatrix.
EqualsOverloaded. Compares two objects to determine if they are equal. (Inherited from Object)
GetHashCodeServes as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object)
GetTypeGets the Type of the current instance. (Inherited from Object)
ReferenceEqualsDetermines whether the specified Object instances are the same instance. (Inherited from Object)
ToStringOverriden. Returns a String that represents the current Object.
this[]Overloaded. Gets or sets the element at the specified index.

Inheritance Hierarchy

Object
ColorMatrix

Examples

// 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]

 

*/

Class Information

NamespaceSystem.Drawing.Filters
Flash LibrarySystem.Windows.Forms.scl
Flash Library Version2.0.0.2118
Silverlight LibrarySystem.Windows.Forms.dll



© 2003-2007 NETiKA Technologies. All rights reserved.