Color Conversion Functions


Version: 2024

Type: Features

Category: Programming

Subcategory: Origin C

Jira: ORG-27885


Example:

void RGB_LCH_convert(int rr=255, int gg=125, int bb=50)
{
	int rgb = RGB(rr, gg, bb);
	double l, c, h;
	RGBtoLCH(rgb,&l, &c, &h);
	printf("result: %g, %g, %g\n", l, c, h);
	DWORD dw = LCHtoRGB(l, c, h);
	printf("%d %d %d\n", GetRValue(dw), GetGValue(dw), GetBValue(dw));
}