LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

MaxValue Property






Gets or sets the images maximum grayscale value. .NET support Silverlight support WinRT support
Syntax
public int MaxValue {get; set;}
'Declaration
 
Public Property MaxValue As Integer
'Usage
 
Dim instance As RasterImage
Dim value As Integer
 
instance.MaxValue = value
 
value = instance.MaxValue
public int MaxValue {get; set;}
 get_MaxValue();
set_MaxValue(value);
public:
property int MaxValue {
   int get();
   void set (    int value);
}

Property Value

Maximum grayscale value.
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.

Example
For an example, refer to WindowLevel and Leadtools.ImageProcessing.Core.WindowLevelCommand
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImage Class
RasterImage Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.