rufus thx
October 23rd, 2004, 06:02 PM
Hi all! I have a strange problem with drawing icons in GDI+. I'm loading icon at init of my custom control
class with:
HICON hIcon = theApp.LoadIcon(<some resorse ID>);
m_pIcon = new Bitmap(hIcon);
then in my drawing function I'm using
graphics.DrawImage(m_pIcon, destRect);
Well, everything is ok when icon is black, but more it is lightly and has more thin lines, then more it
becomes ugly gray around edges (gray more visible in direction to right-bottom corner of wnd, something
like inner shaddow in PhotoShop). How can I eliminate that?
Thanks!
class with:
HICON hIcon = theApp.LoadIcon(<some resorse ID>);
m_pIcon = new Bitmap(hIcon);
then in my drawing function I'm using
graphics.DrawImage(m_pIcon, destRect);
Well, everything is ok when icon is black, but more it is lightly and has more thin lines, then more it
becomes ugly gray around edges (gray more visible in direction to right-bottom corner of wnd, something
like inner shaddow in PhotoShop). How can I eliminate that?
Thanks!