Gets or sets the images maximum grayscale value.
public int MaxValue { get; set; }
Public Property MaxValue As Integer
public int MaxValue {get; set;}
@property (nonatomic, assign) NSInteger maxValue
public int getMaxValue()
public void setMaxValue(int value)
<br/>get_MaxValue();<br/>set_MaxValue(value);<br/>Object.defineProperty('MaxValue');
Maximum grayscale value.
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.
For an example, refer to WindowLevel and WindowLevelCommand
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET