How I can use RGB Color to add a gray rectangle?
RgbColor colorCDCDCD = new RgbColor(190f, 190f, 190f); does'nt work
RgbColor colorCDCDCD = RgbColor.Gray; works
But I need a lighter Gray!
RGB Color
Re: RGB Color
Support · Jul 10, 2006Hello,
The reason you do not see the color when using RGB is because you have to pass floating point value between 0 and 1 to the RgbColor constructor. So divide each of your values with 255 and you will get the floating point value between 0 and 1 and then you will be able to fill the rectangle with Gray color.
Thanks,
ceTe Software Support Team