←Select platform

MinValue Property

Summary

Gets or sets the images minimum grayscale value.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public int MinValue { get; set; } 
Public Property MinValue As Integer 
public int MinValue {get; set;} 
@property (nonatomic, assign) NSInteger minValue 
public int getMinValue() 
public void setMinValue(int value) 
             
 <br/>get_MinValue();<br/>set_MinValue(value);<br/>Object.defineProperty('MinValue');  
public: 
property int MinValue { 
   int get(); 
   void set (    int ); 
} 

Property Value

Minimum 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

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 Assembly