Leadtools Namespace > RasterImage Class : MinValue Property |
public int MinValue {get; set;}
'Declaration Public Property MinValue As Integer
'Usage Dim instance As RasterImage Dim value As Integer instance.MinValue = value value = instance.MinValue
public int MinValue {get; set;}
@property (nonatomic, assign) int minValue;
public int getMinValue() public void setMinValue(int value)
get_MinValue();
set_MinValue(value);
Object.defineProperty('MinValue');
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.