为什么饱和度和色调的最大值分别为 240 和 239? [英] Why are max values for saturation and hue are 240 and 239 respectively?

查看:53
本文介绍了为什么饱和度和色调的最大值分别为 240 和 239?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 ColorDialog 中,为什么饱和度和色调的最大值分别是 240 和 239?它们对应什么?

In ColorDialog why are the max values for saturation and hue are 240 and 239 respectively? To what do they correspond?

推荐答案

在 Windows 中,HSL 和 HSV 空间通常重新映射到 0 到 240 之间的比例,以便可以用 32 位值表示颜色."

"In Windows, the HSL and HSV spaces are usually remapped to a scale between 0 to 240 so that colors can be represented with a 32-bit value."

请参阅 http://msdn.microsoft.com/en-us/library/aa511283.aspx

色调表示为围绕色轮的角度,在这种情况下乘以 2/3 以保持在 240 度以下.最高值为 239,因为 240 = 0 就像指南针上的 360 度 = 0 度一样.

Hue is expressed as an angle around the color wheel, in this case multiplied by 2/3 to stay under 240 degrees. The highest value is 239 because 240 = 0 just as 360 degrees = 0 degrees on a compass.

这篇关于为什么饱和度和色调的最大值分别为 240 和 239?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆