Home All Groups Group Topic Archive Search About

How to simple storage data about colors in database ?

Author
29 Jan 2005 1:30 PM
£ukasz Margielewski
I have column color, which describes color of something ..Ths paramete I use
to set color of some windows forms, which willr epresents data in records...
what is the simplest way to storare inforamations about colors in database
??
Author
29 Jan 2005 2:11 PM
Miha Markic [MVP C#]
Hi,

I would use an int32 (4 bytes) - should be enough.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

Show quoteHide quote
"£ukasz Margielewski" <luk***@karaoke-kgb.pl> wrote in message
news:ctg3el$7bc$1@nemesis.news.tpi.pl...
>I have column color, which describes color of something ..Ths paramete I
>use to set color of some windows forms, which willr epresents data in
>records... what is the simplest way to storare inforamations about colors
>in database ??
>
Are all your drivers up to date? click for free checkup

Author
29 Jan 2005 3:57 PM
Cor Ligthert
Lukasz

Have a look at this colors toargb to understand what Miha is writing

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawingcolorclasstoargbtopic.asp

I hope this helps?

Cor
Author
29 Jan 2005 4:53 PM
Sahil Malik
Depends on how many colors you need.
Just like a windows screen, is it 2 bit depth? 16 bit? 24 bit? or 32 bit?

- Sahil Malik
http://codebetter.com/blogs/sahil.malik/




Show quoteHide quote
"£ukasz Margielewski" <luk***@karaoke-kgb.pl> wrote in message
news:ctg3el$7bc$1@nemesis.news.tpi.pl...
>I have column color, which describes color of something ..Ths paramete I
>use to set color of some windows forms, which willr epresents data in
>records... what is the simplest way to storare inforamations about colors
>in database ??
>

Bookmark and Share