Provider Color -4602138 (??)

This forum is for programmers who have questions about the source code.
Post Reply
apollonia
Posts: 40
Joined: Sat Nov 08, 2008 7:17 pm
Location: Bakersfield, CA

Provider Color -4602138 (??)

Post by apollonia » Sat Feb 12, 2011 7:28 pm

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?

User avatar
jordansparks
Site Admin
Posts: 5746
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Provider Color -4602138 (??)

Post by jordansparks » Sun Feb 13, 2011 2:24 pm

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.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply