Icon vs BitMap

G

Guest

I have about 50 images in my application as "embedded resources". They are
Icon size (16x16 and 24x24 and 32x32). I can use either the bitmap version
or convert them to Icons. Either way seems to work ok (I make the color of
the upper left pixel in the bitmap's the transparent color). I noted that
the Icons take up 25k and the bitmaps only 1k). Which would be the
recommended way to go, i.e., icons or bitmaps in my imagelist? Any guidance
would be appreciated (VB.Net 2003)
 
G

gene kelley

I have about 50 images in my application as "embedded resources". They are
Icon size (16x16 and 24x24 and 32x32). I can use either the bitmap version
or convert them to Icons. Either way seems to work ok (I make the color of
the upper left pixel in the bitmap's the transparent color). I noted that
the Icons take up 25k and the bitmaps only 1k). Which would be the
recommended way to go, i.e., icons or bitmaps in my imagelist? Any guidance
would be appreciated (VB.Net 2003)

There are standard type icons and then there are XP type icons, not
to mention bitmap and png formats.

The 25k icon size may indicate that it's a multi-res icon. When I run
across a multi-res file where I only want one particular icon size, I
extract that icon for use in which case the icon is usually about 1K.
I have run into mult-res files that can run as high as 96k.

I'm not sure what VB2003 supports as the toolbar and menu in that
version has been replaced with toolstrip and menustrip in VB2005.

I personally use XP type icons as first choice, otherwise png files.
They are 32 bit where the background is always transparent without
regard to any transparent color key. If any of the various sizes are
of the same icon, I'll make a multi-res icon rather than two or three
separate icons.

Gene
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top