开发者

Magic++ RGB colors values

开发者 https://www.devze.com 2023-01-02 19:36 出处:网络
Does anyone kn开发者_如何学Pythonow why is Magic++ giving me RGB values less than 1?The maximum RGB component value in Magick is 1 and the minimum is 0. So the values should be between 0 and 1. For ex

Does anyone kn开发者_如何学Pythonow why is Magic++ giving me RGB values less than 1?


The maximum RGB component value in Magick is 1 and the minimum is 0. So the values should be between 0 and 1. For example, RGB values of (0.5, 0.5, 0.5) represents a grey, (1.0, 0, 0) would be a pure red, etc.

Check out the documentation. You may also find this of interest, it discusses what typically happens when the RGB component values are between 0 and 1 (multiplied by 255).


I don't know that specific library but RGBs are commonly represented as floating point values between 0 and 1 as well as unsigned byte values between 0 and 255.

0

精彩评论

暂无评论...
验证码 换一张
取 消