[英]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. Magick中的最大RGB分量值为1,最小值为0。因此,该值应介于0和1之间。例如,(0.5,0.5,0.5)的RGB值表示灰色(1.0,0,0)表示是纯红色,等等。
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(乘以255)之间时通常会发生什么。
我不知道特定的库,但是RGB通常表示为0到1之间的浮点值以及0到255之间的无符号字节值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.