Page 1 of 1

Provider Color -4602138 (??)

Posted: Sat Feb 12, 2011 7:28 pm
by apollonia
jordan,

i remember figuring this out a couple of years ago, and it made perfect sense, but for the life of me i can't remember.

what is the format for provider colors stored in the db?

Re: Provider Color -4602138 (??)

Posted: Sun Feb 13, 2011 2:24 pm
by jordansparks
C# has two methods called Color.ToArgb() and Color.FromArgb(). We just use those. It packs the 4 color channels into the 32 bits using 8 bits per color.