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




Gets or sets a "percentage" value that indicates whether the pixels that are replaced are lightened or darkened.

Syntax

Visual Basic (Declaration) 
Public Property Lightness As Integer
Visual Basic (Usage)Copy Code
Dim instance As RemoveRedEyeCommand
Dim value As Integer
 
instance.Lightness = value
 
value = instance.Lightness
C# 
public int Lightness {get; set;}
Managed Extensions for C++ 
public: __property int get_Lightness();
public: __property void set_Lightness( 
   int value
);
C++/CLI 
public:
property int Lightness {
   int get();
   void set (int value);
}

Return Value

"Percentage" value that indicates whether the pixels that are replaced are lightened or darkened. If this value is greater than 100, the replaced pixels will be lightened. If this value is less than 100, the replaced pixels will be darkened. This method preserves the lightness of the original pixels and substitutes the red color with the new color.

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