Top  Previous  Next

setDisplayRange ( integer Image, float Min, float Max )

Use this function to set the minimum and maximum value of the display range for a high-bit depth image or the Video Window. A display range is range of pixel values mapped to the standard viewable range of a video card (256 levels). All the levels below minimum are displayed black, while all the levels above maximum are displayed white.

An integer between 0 and 116 specifying the frame number of the image. A value of 0 represents the Video Window. Values in the range of 100-116 correspond to hidden frames.  
Min, Max  
Floating variables or constants specifying the minimum and maximum levels of the display range of the image. If both values are zero, the minimum and maximum levels will be set to the minimum and maximum pixel values in the image (or the current selection), thus providing the "best fit" display.  
Error flags

The flag set if successful.  
The flag set if failed.  

This set of statements changes the display range of a 16-bit sample image to 200 – 2000:  
loadIm (1,"sample11.iwd")  
setDisplayRange (1, 200, 2000 )