LEADTOOLS WPF and Silverlight (Leadtools.Windows.Media.Effects assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Saturation Property
See Also 
Leadtools.Windows.Media.Effects Namespace > DesaturateEffect Class : Saturation Property



Gets or sets the amount to change the saturation of each pixel. This is a dependency property. Supported in Silverlight

Syntax

Visual Basic (Declaration) 
Public Property Saturation As Double
Visual Basic (Usage)Copy Code
Dim instance As DesaturateEffect
Dim value As Double
 
instance.Saturation = value
 
value = instance.Saturation
C# 
public double Saturation {get; set;}
C++/CLI 
public:
property double Saturation {
   double get();
   void set (    double value);
}

Property Value

The amount to change the saturation of each pixel. Default value is 0.5.

Example

For XAML example, refer to DesaturateEffect.

For C#/VB examples, refer to DesaturateEffect.

Remarks

Negative values decrease the saturation of colors. Positive values increase the saturation. The saturation level is increased or decreased by a percentage of its present saturation level. For example, an increase of 20 of the current saturation level "L" will raise the new saturation level "L1" to a value L + 0.20 * L. Likewise, increasing the saturation level 100 doubles the saturation level ( L1 = L + 1.0 * L). Decreasing the saturation level 100 will set the new saturation level to 0. This process is carried out for every pixel.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also