Re: how to draw an notify icon?

From: Bob Powell [MVP] (bob_at__spamkiller_bobpowell.net)
Date: 10/21/04


Date: Thu, 21 Oct 2004 13:31:42 +0200

I *think* that you may be seeing the effects of the automatic selection of
transparent pixels. The framework code attempts to detect the transparent
colour from the bottom-left pixel of an icon so if that colour is red you
might see all your red disappear...

-- 
Bob Powell [MVP]
Visual C#, System.Drawing
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
"assaf" <assafwo@hotmail.com> wrote in message
news:uCVMKAEtEHA.3200@TK2MSFTNGP09.phx.gbl...
> hi all
>
> i am drawing a notify icon.
> i added a 'NotifyIcon' control to my form.
>
> in the visual studio designer,
> it looks ok.
> however, when i run the app,
> it looks a little different.
>
> for example,
> i use only red in the icon.
> and when i run,
> black pixels appear!
>
> what am i missing?
> why isn't the tray icon
> identical to what i draw in the disgner?
>
>
> assaf
>
>
>


Relevant Pages

  • Re: Questions on GS/OS Icon ($CA) files
    ... this area of IIgs programming) but my functioning IIgs is at work (where ... Most IIgs icon files are created with an icon editor application running ... pixels are encoded. ... palette rather than RGB values. ...
    (comp.sys.apple2)
  • Re: Using Graphics.World when drawing
    ... Conversions to and from pixels are unneccesary. ... See the GDI+ FAQ and Windows Forms Tips and Tricks for some ideas. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Vector Graphics - was MFC and GDI+
    ... in this case just means average the 4 pixels to 1. ... However there are two reasons I want to make GDI+ work. ... Font antialiasing works well and it would be nice to ... and fix owner draw buttons ...
    (microsoft.public.vc.mfc)
  • Re: Complex Alpha Masks
    ... as I get some time I'll be investing in writing it. ... > individual pixels. ... > Answer those GDI+ questions with the GDI+ FAQ ... >> based on the opacity of the mask pixels. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Any hope for decent performance of System.Drawing
    ... with each screen having 1600x1200 pixels with our application. ... do with GDI+, we rendered directly into a pixel buffer, but it was a GDI+ ... WPF provides no immediate mode API. ... DirectX and it is a mess trying to build a decent 2D API over that. ...
    (microsoft.public.dotnet.framework.drawing)