简体   繁体   中英

Magic++ RGB colors values

有谁知道为什么Magic ++给我的RGB值小于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).

我不知道特定的库,但是RGB通常表示为0到1之间的浮点值以及0到255之间的无符号字节值。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM