473,761 Members | 9,379 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Icon vs BitMap

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
May 21 '06 #1
2 4566
On Sat, 20 May 2006 16:35:01 -0700, Dennis
<De****@discuss ions.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
May 21 '06 #2
Any guidance as to how I can extract one size icon from a multi-res icon?
--
Dennis in Houston
"gene kelley" wrote:
On Sat, 20 May 2006 16:35:01 -0700, Dennis
<De****@discuss ions.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

May 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1939
by: Gandalf | last post by:
Hi Gurus! Here is a problem with wxPython. I would like to load bitmaps and create a mask for them at once. Here is my idea: the mask colour for the bitmap should be the colour of the pixel in the top left corner. (The same way Delphi does with TImageList.) E.g. the bitmap should be transparent everywhere with the same colour. I read the documentation, and I could not find an easy way to do this. Here is what I have tried:
5
1923
by: yxq | last post by:
Hello The icons with the alpha channel are supported in WindowsXP. If use the System.Drawing.Bitmap.ToBitmap on the icon handle(ico.ToBitmap), the alpha channel won't be preserved, resulting in an ugly black border where the alpha area. But if the icons with the alpha channel must be show in a picuturebox, how to do? Picturebox1.Image=??? The article http://www.vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/Getting_
11
3918
by: Juan Romero | last post by:
Hey guys, I have an ImageList control that stores my icons. What I need to do is find out if the icon at hand already exists in the ImageList so I dont enter it twice. How can I do that? Thanks in advance!
2
6698
by: active | last post by:
I find Bitmap.Save works for WMF files but Bitmap.FromFile does not. If I use FromFile on a WMF file that came with VS I get an exception. If I use it on a WMF file created with Bitmap.Save I don't get an exception but it appears the Bitmap is blank. Can anyone share some knowledge on this?
2
2334
by: Carl Gilbert | last post by:
Hi I have to following code which sets up a new bitmap. 'set up a transparent 16x16 bitmap Dim bm As New Bitmap(16, 16) Dim g As Graphics = Graphics.FromImage(bm) g.Clear(System.Drawing.Color.Transparent) 'draw a rectangle on the transparent bitmap
2
429
by: Dennis | last post by:
I have created a bitmap and set the transparency color to black; mybitmap.MakeTransparent(Color.Black) myicon = Icon.FromHandle(bm.GetHicon) This creates the icon ok but the background color black is not transparent. How do I create an Icon from this bitmap that has also the color black transparent?
3
4095
by: Dennis | last post by:
I have a bitmap and make the color transparent; mybitmap.MakeTransparent(Color.Black) When I save it as a Icon, the black color is not transparent. However, if I save it as a bitmap then display it using windows explorer, the black color is in fact transparent. Could it be that the bitmap is not an alpha bitmap that causes the icon to not have the black color transparent? --
5
3172
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the database. Therefore the file doesnt really exist on the user's hard drive. All the file extracting techniques require that I have the actual file on the drive in order to get an icon for it. There is a workaround for this: i could create dummy files with...
1
1463
by: John Veldthuis | last post by:
What sizes can the system tray icons be? I have a utility that I display a number as an icon. I do it by using drawstring into the icon bitmap and displaying it. It is fine as long as the number is only 2 digits but when it hits 3 the text runs off the end of the icon and you cant see it anymore. I get around this by making the font smaller but it makes it hard to read then. An ideal way would be to do something like the clock does but...
8
2767
by: Frank | last post by:
Given a bitmap I want to write a Icon file using it. I believe I can do it except for writing the bits of the image. Can you tell me how to get the bits into a ByteArray Thanks
0
9521
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9900
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7324
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.