Take a look at the BYTSCL() function :
http://www.exelisvis.com/docs/BYTSCL.html
This function allows you scale the values in the way you describe into a range of 0-255. You can also specify the min and max values that you want to scale by, and other options.
-Josh
Exelis VIS