From: tshad on 8 Jan 2010 11:02 I was playing with transparent colors and was wondering why: #50C6 is transparent (Light green) #50C6C6 is not transparent (Light Blue) #50C6C6C6 is transparent (Light Gray) I had been told the format was #00xxxxxx, but the first one is not in that format so why is it transparent? Thanks, Tom
From: Patrice on 8 Jan 2010 14:23 Hello, I gave this a try and it seems that #ABCD is taken as #AABBCCDD. So IMO your best bet is to always use 6 or 8 hexadecimal digits. As a side note #50C6C6C6 is partially transparent (transparency goes from #00 for fully transparent to #FF for fully opaque). -- Patrice "tshad" <tfs(a)dslextreme.com> a �crit dans le message de news:OC3o8vHkKHA.5568(a)TK2MSFTNGP02.phx.gbl... >I was playing with transparent colors and was wondering why: > > #50C6 is transparent (Light green) > #50C6C6 is not transparent (Light Blue) > #50C6C6C6 is transparent (Light Gray) > > I had been told the format was #00xxxxxx, but the first one is not in that > format so why is it transparent? > > Thanks, > > Tom >
From: Patrice on 9 Jan 2010 05:00 > Is 6 assumed to have a 2 digits before it (FF) so it is not transparent? Yes. >> As a side note #50C6C6C6 is partially transparent (transparency goes from >> #00 for fully transparent to #FF for fully opaque). > > So the last 6 characters are the color and the 1st 2 (if there are 8 > characters) are for transparency? Correct. I'm not that fluent with WPF. My approach was just to set the color value in the XAML file and have some code to display the actual value... -- Patrice
From: Patrice on 9 Jan 2010 12:45 Thanks for the follow up. I never wondered as I'm always using 6 or 8 digits. -- Patrice
|
Pages: 1 Prev: Can this, maybe ASP code, be easily replaced with modern code Next: Insert on empty ListView |