LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
MinValue Property
See Also 
Leadtools Namespace > RasterImage Class : MinValue Property



Gets or sets the images minimum grayscale value. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property MinValue As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As Integer
 
instance.MinValue = value
 
value = instance.MinValue
C# 
public int MinValue {get; set;}
C++/CLI 
public:
property int MinValue {
   int get();
   void set (    int value);
}

Property Value

Minimum grayscale value.

Example

For an example, refer to WindowLevel

Remarks

For every value between 0 and MinValue, Black (RGB(0,0,0)) will be used. For values between MinValue and MaxValue, the gray value to be displayed is calculated by : gray = (index - MinValue) * 255 / (MaxValue - MinValue).

index is the intensity value of the pixel. If the intensity value is > MaxValue, the color will be White. If the intensity value is < MinValue, the color will be Black. For those intensity values between MinValue and MaxValue, the above equation is used to determine the color, with index equal to the intensity value.

For more information, refer to Grayscale Images.

Requirements

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

See Also