/*----------------------------------------------------------------------------- File: UgGraphColorsAdjust.c Description: demo modifying color PTC File Date Version Author Vers Comment --------- ------- -------- ----- --------------------------------------------- 04-dec-97 H-02-02 AWY/CHI $$1 setup -----------------------------------------------------------------------------*/ /*---------------------- Pro/Toolkit Includes ------------------------*/ #include #include #include #include /*---------------------- Application Includes ------------------------*/ #include /*---------------------- Function Prototypes -------------------------*/ ProError UserAdjustHalftone(); ProError UserAdjustHalftone(dummy, lighter) char *dummy; int lighter; { ProColormap colors; ProError err; err=ProColormapGet(PRO_COLOR_HALF_TONE,&colors); ERROR_CHECK("UserAdjustHalftone","ProColormapGet",err); if(lighter) { colors.red += 20; colors.green+= 20; colors.blue += 20; } else { colors.red -= 20; colors.green-= 20; colors.blue -= 20; } err=ProColormapSet(PRO_COLOR_HALF_TONE,&colors); ERROR_CHECK("UserAdjustHalftone","ProColormapSet",err); err=ProWindowRefresh(-1); ERROR_CHECK("UserAdjustHalftone","ProWindowRefresh",err); }