Color depth |
---|
Related |
>>
to shift them down) to get the final values, and then call GetColorFromValue
directly to get the colours out.CalculateMultiplier
function takes care of getting the values evenly distributed over the 0-255 range. Though if you want to do it the simple way (might cause less rounding errors in the conversions) the multipliers can all be given manually using the more complex constructor.ReadIntFromByteArray
and WriteIntToByteArray
from my ArrayUtils
class: