locked
Color differences between System.Drawing & HTML RRS feed

  • Question

  • User-1468470916 posted
    Hi to all, I am generating some buttons which should be placed into a html-page, this html page has a background color (#053A92), now I am giving the button the same color when generating them, but unfortunately the color is slightly different (a little bit darker). I have already tried to set the color width ColorTranslator.FromHTML("#053A92") and with System.Drawing.Color.FromArgb(255,5,58,146) but unfortunately without success everytime the same result ;-(( Thanks in advance for any ideas ... ;-) Greetings Stefan
    Friday, May 21, 2004 12:50 PM

All replies

  • User-410114173 posted
    Stefan. I think the problem will be with how you are saving the button off... Are you saving it as a Gif or a Jpeg? After you render your button, copy it into Photoshop (or your graphics program of choice) and verify that the color it output is the same as you said you wanted... Worse case scenario, export it as a Jpeg in the highest quality mode. GDI+ seems to have its share of problems... I wonder if much is going to change in the future of it.
    Tuesday, May 25, 2004 12:19 PM