I’m displaying a histogram for a grayscale image and I would like to draw each line with its respective color. For example:
for(int i=0;i<256;i++)
{
Color c=getcolor(i);
drawline(c,x,y,...);
}
I want something like the getcolor function above.
1 Answer