RGBfromHSV example for C++ Builder
//Takes an HSV, displays the HSV components, and displays the RGB components
void HSVtoRGB(short nH, short nS, short nV)
{
::OLE_COLOR cr;
Byte red;
Byte green;
Byte blue;
LEADRasterProcess* pRasterProc= NULL;
CoCreateInstance(CLSID_LEADRasterProcess, NULL, CLSCTX_ALL, IID_ILEADRasterProcess, (void**)&pRasterProc);
cr= pRasterProc->RGBfromHSV (nH, nS, nV);
red= GetRValue(cr);
green=GetGValue(cr);
blue= GetBValue(cr);
ShowMessage ("HSV (" + IntToStr(nH) + "," + IntToStr(nS) + "," + IntToStr(nV) + ") is RGB(" + IntToStr(red) + "," + IntToStr(green) + "," + IntToStr(blue) + ")");
}