Leadtools.ImageProcessing.Color Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
Colors Property
See Also 




Gets or sets an array of RasterColor structures that contain the colors that will be added to the grayscale image.

Syntax

Visual Basic (Declaration) 
Public Property Colors As RasterColor()
Visual Basic (Usage)Copy Code
Dim instance As GrayScaleToMultitoneCommand
Dim value() As RasterColor
 
instance.Colors = value
 
value = instance.Colors
C# 
public RasterColor[] Colors {get; set;}
Managed Extensions for C++ 
public: __property RasterColor[] get_Colors();
public: __property void set_Colors( 
   RasterColor[] value
);
C++/CLI 
public:
property array<RasterColor> Colors {
   array<RasterColor> get();
   void set (RasterColorarray<value> value);
}

Return Value

Array of RasterColor structures that contain the colors that will be added to the grayscale image. This property is ignored when the Distribution property is set to UserDefined. If the toolkit is generating the gradient colors, the user sets the desired base color(s) in this property when GrayScaleToMultitoneCommand is called. The number of entries in the array depends on the value of Tone: 1 for Monotone, 2 for Duotone, 3 for Tritone, 4 for Quadtone. When the toolkit generates the array of gradient colors.

Example

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also