coolpal
October 6th, 2003, 06:08 AM
Hi Folks,
I am using Color structure to create a SolidBrush object.I use this SolidBrush object to paint the background of cells in a datagrid.I have done the coding to set the color for each cell.I did this by choosing the color from the palette shown by ColorDialog window.
I understood that Color structure basically stores 32bit (ARGB) colors.
Now, i am in a situation to read the color values for each cell from a file.Also, these color values are in 8 bit format(256 colors palette). How do i use these 8 bit color values to create a Color structure which actuallly requires a 32 bit color value.
Thanks for the help.
-Coolpal
I am using Color structure to create a SolidBrush object.I use this SolidBrush object to paint the background of cells in a datagrid.I have done the coding to set the color for each cell.I did this by choosing the color from the palette shown by ColorDialog window.
I understood that Color structure basically stores 32bit (ARGB) colors.
Now, i am in a situation to read the color values for each cell from a file.Also, these color values are in 8 bit format(256 colors palette). How do i use these 8 bit color values to create a Color structure which actuallly requires a 32 bit color value.
Thanks for the help.
-Coolpal