Re: Question about GdkColor

2006-03-18 Thread Sven Neumann
Hi, yeajchao [EMAIL PROTECTED] writes: In general,the RGB color mode ,the red or green or blue's value is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535 My question is ,how to map (0--255) to (0--65535) r = ((r 8) | r); g = ((g 8) | g); b = ((b 8) | b); Sven

Question about GdkColor

2006-03-17 Thread yeajchao
Hello all I am chinese,I am sorry for my terriblly poor English ! I have confused about GdkColor In general,the RGB color mode ,the red or green or blue's value is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535 My question is ,how to map (0--255) to

Re: Question about GdkColor

2006-03-17 Thread Eduardo M KALINOWSKI
yeajchao wrote: Hello all I am chinese,I am sorry for my terriblly poor English ! I have confused about GdkColor In general,the RGB color mode ,the red or green or blue's value is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535 My question is ,how to map

Question about GdkColor

2006-03-17 Thread yeajchao
Hello all I am chinese,I am sorry for my terriblly poor English ! I have confused about GdkColor In general,the RGB color mode ,the red or green or blue's value is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535 My question is ,how to map (0--255) to

Re: Question about GdkColor

2006-03-17 Thread Sven Neumann
Hi, yeajchao [EMAIL PROTECTED] writes: In general,the RGB color mode ,the red or green or blue's value is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535 My question is ,how to map (0--255) to (0--65535) r = ((r 8) | r); g = ((g 8) | g); b = ((b 8) | b); Sven

Re: Question about GdkColor

2006-03-17 Thread Toby
yeajchao wrote: My question is how to map (0--255) to (0--65535) Multiply by 257. Toby -- Signed/encrypted mail welcome. GPG/PGP Key-Id: 0x15C5C2EA ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list