Home All Groups Group Topic Archive Search About

Limit to range of colors displayed by Label control?

Author
13 Jul 2006 5:37 PM
Evan Stone
Hi,

I was just curious to know if there was a limit to the range of colors a
label control can display. For instance if I set a label control's ForeColor
to 28, 23, 15 it renders black (on my system, at least - but I'm running an
nVIDIA GeForce 440 MX 64MB card running in 32-bit color, which should be
plenty able to render that properly).

Anyway, it occurred to me that perhaps the label had a restricted color
range, and if this is the case, which other controls might this restriction
apply to?

thanks!

evan k. stone | software engineer
----------------------------------------
santa rosa, ca, usa

Author
13 Jul 2006 5:50 PM
GhostInAK
Hello Evan,

There is no restriction here.  You simply chose a color that is indistinguishable
from black to the normal human eye.
RGB(28, 23, 15) = HTML Color: #1C170F.  Try that in yer fav web browser..
it'll still look black.
You need to raise the brightness level.

-Boo

Show quote
> Hi,
>
> I was just curious to know if there was a limit to the range of colors
> a label control can display. For instance if I set a label control's
> ForeColor to 28, 23, 15 it renders black (on my system, at least - but
> I'm running an nVIDIA GeForce 440 MX 64MB card running in 32-bit
> color, which should be plenty able to render that properly).
>
> Anyway, it occurred to me that perhaps the label had a restricted
> color range, and if this is the case, which other controls might this
> restriction apply to?
>
> thanks!
>
> evan k. stone | software engineer
> ----------------------------------------
> santa rosa, ca, usa
Author
13 Jul 2006 6:27 PM
Ignacio Machin ( .NET/ C# MVP )
Hi,

First of all it's not nice to crosspost to so many NGs , it's better to post
to just one.

There is no restriction at all. Post some code in case you do not solve your
problem
Also is this a web or a win app?


--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Show quote
"Evan Stone" <recombinantspam_n0spaam@hotmail.com> wrote in message
news:Ogl%23$LqpGHA.3288@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> I was just curious to know if there was a limit to the range of colors a
> label control can display. For instance if I set a label control's
> ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm
> running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, which
> should be plenty able to render that properly).
>
> Anyway, it occurred to me that perhaps the label had a restricted color
> range, and if this is the case, which other controls might this
> restriction apply to?
>
> thanks!
>
> evan k. stone | software engineer
> ----------------------------------------
> santa rosa, ca, usa
>
>
Author
13 Jul 2006 10:41 PM
Herfried K. Wagner [MVP]
"Evan Stone" <recombinantspam_n0spaam@hotmail.com> schrieb:
> I was just curious to know if there was a limit to the range of colors a
> label control can display. For instance if I set a label control's
> ForeColor to 28, 23, 15 it renders black (on my system, at least - but I'm
> running an nVIDIA GeForce 440 MX 64MB card running in 32-bit color, which
> should be plenty able to render that properly).

I am wondering how you determine that the text is rendered in black...

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

AddThis Social Bookmark Button