What would be the best format to numerically represent a color in .NET so that I wouldn’t have to use the Color object? Right now I am saving the color as a the HTML representation, but in order to use it I have to parse it out.
I am dealing with a 800×600 canvas that stores a color value for each pixel and I need to be able to render the color out as quick as possible without bloating my application out to storing 500k+ color objects.
You can use a standard Int32 to store a color.
This is particularly nice because the Color types in the framework support this directly via Color.ToArgb() and Color.FromArgb() and similar methods.