scale value * 256 is an integer