read_image (Image, 'test.png') gmin:=0 gmax:=130 multi:=255.0/(gmax-gmin) add:=-multi * gmin scale_image (Image,ImageScale, multi, add)