Home All Groups Group Topic Archive Search About
Author
20 May 2006 11:35 PM
Dennis
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)
--
Dennis in Houston

Author
21 May 2006 8:01 AM
gene kelley
On Sat, 20 May 2006 16:35:01 -0700, Dennis
<Den***@discussions.microsoft.com> wrote:

>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
Author
30 May 2006 11:09 PM
Dennis
Any guidance as to how I can extract one size icon from a multi-res icon?
--
Dennis in Houston


Show quoteHide quote
"gene kelley" wrote:

> On Sat, 20 May 2006 16:35:01 -0700, Dennis
> <Den***@discussions.microsoft.com> wrote:
>
> >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
>