←Select platform

Saturation Property

Summary

Gets or sets a value that represents the amount to change saturation, in tenths of a percent.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public int Saturation { get; set; } 
Public Property Saturation As Integer 
public int Saturation {get; set;} 
@property (nonatomic, assign) NSInteger saturation 
public int getSaturation() 
public void setSaturation(int value) 
             
 <br/>get_Saturation();<br/>set_Saturation(value);<br/>Object.defineProperty('Saturation');  
public: 
property int Saturation { 
   int get(); 
   void set (    int ); 
} 

Property Value

Amount to change saturation, in tenths of a percent. Valid values range from -1000 to 1000. This value is divided internally by 10. 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. The saturation is set to 1000 (maximum value) if the new value exceeds 1000).

Example

Refer to ColorReplaceCommand.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Color Assembly