Fish Wang says to Ow< [MSFW]
bitdepth 8 跟 16 要加 if (rawValue > max) { rawValue -= (1 « bitdepth) } ?