.NET Windows Forms in a Nutshell

ColorMap

System.Drawing.Imaging (system.drawing.dll) sealed class

This class defines a mapping of one color to another: the NewColor and the OldColor . Several of the ImageAttributes methods (such as ImageAttributes.SetRemapTable() ) use an array of these objects to define a color mapping table.

public sealed class ColorMap { // Public Constructors public ColorMap (); // Public Instance Properties public Color NewColor {set; get; } public Color OldColor {set; get; } }

Passed To

ImageAttributes.{SetBrushRemapTable() , SetRemapTable()}

Категории