我很确定您想要的是RGBtoHSB
int r = ...int g = ... int b = ...float[] hsv = new float[3];Color.RGBtoHSB(r,g,b,hsv)//hsv contains the desired values

我很确定您想要的是RGBtoHSB
int r = ...int g = ... int b = ...float[] hsv = new float[3];Color.RGBtoHSB(r,g,b,hsv)//hsv contains the desired values