[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

how to draw an notify icon?

Assaf Wodeslavksy

10/17/2004 11:41:00 AM

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



2 Answers

Bob Powell

10/21/2004 11:32:00 AM

0

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/gdipl...

The GDI+ FAQ RSS feed: http://www.bobpowell.net/f...
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tips...
Bob's Blog: http://bobpowelldotnet.blogspot.co...






"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
>
>
>


Assaf Wodeslavksy

10/22/2004 8:19:00 AM

0

hi bob

i am now realizing that creating an icon is
a black magic art.
i understand that i will not be able to make
icons myself,
unless a master in the art will guide me.
if u have ever created icons
u know what i mean.
if u haven't yet,
i recommend that u give it a shot.

try to make any image appear as
identical as possible as an icon.
and u will see that it is not simple,
if at all possible!!

i myself will only use downloaded images from the web.
as many of them are available.

i u can teach me how to convert an image (gif,jpg...)
into an icon (ico) i would be so much abliged.


assaf


"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:#UC61G2tEHA.3572@tk2msftngp13.phx.gbl...
> 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/gdipl...
>
> The GDI+ FAQ RSS feed: http://www.bobpowell.net/f...
> Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tips...
> Bob's Blog: http://bobpowelldotnet.blogspot.co...
>
>
>
>
>
>
> "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
> >
> >
> >
>
>