RGBtoHSV

This function is used to convert the RGB color to HSV color.

void RGBtoHSV(
	COLORREF rgb,
	float *H,
	float *S,
	float *V
);

Parameters

rgb

Original RGB color.

H

The Hue component used to return the HSV color model, 0 <= H < 360.

S

The Saturation component used to return the HSV color model, 0 <= S <= 1.

V

The Value component used to return the HSV color model, 0 <= V <= 1.

Return Value

None

Remarks

For a detailed description of HSV, please refer to HSVtoRGB

Examples

None

(贡献者:Krissi  编辑