LEADTOOLS Image Processing (Leadtools.ImageProcessing.Color assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Colors Property
See Also 



Gets or sets an array of Leadtools.RasterColor structures that contain the colors that will be added to the grayscale image. Supported in Silverlight, Windows Phone 7

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;}
C++/CLI 
public:
property array<RasterColor>^ Colors {
   array<RasterColor>^ get();
   void set (    array<RasterColor>^ value);
}

Property Value

Array of Leadtools.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: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also