473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

getting 16x16 icon from icon file

I have icons which contain 16x16, 24x24, and 32x32 icons in the single file
and it is embedded as a resource... I need to get a 16x16 icon only out of
it, how would i go about doing that? ive tried this

Dim ico As Drawing.Icon = New
Drawing.Icon(GetType(bdbGeneral).Assembly.GetManif estResourceStream("bdb.plugin.ico"))

Dim icoMyIcon As Drawing.Icon = New Drawing.Icon(ico,
SystemInformation.SmallIconSize)

and it returns a 32x32 icon shrinked down to 16x16... which doesnt look
correct, its blured and such, and i put markers on the 16x16 icon to tell if
it was the right one, and they did not show up so i know it did not select
the correct icon... how do i get it out and use it as a icon? thanks!


Nov 21 '05 #1
3 3005
"Brian Henry" <no****@nospam.com> schrieb:
I have icons which contain 16x16, 24x24, and 32x32 icons in the single file
and it is embedded as a resource... I need to get a 16x16 icon only out of
it, how would i go about doing that? ive tried this


..NET Icon Explorer
<URL:http://vbaccelerator.com/article.asp?id=4567>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
This ones much simpler to follow:
http://www.codeproject.com/dotnet/MultiIcon.asp

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
"Brian Henry" <no****@nospam.com> schrieb:
I have icons which contain 16x16, 24x24, and 32x32 icons in the single
file and it is embedded as a resource... I need to get a 16x16 icon only
out of it, how would i go about doing that? ive tried this


.NET Icon Explorer
<URL:http://vbaccelerator.com/article.asp?id=4567>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
thanks, that one definatly is much simplier
"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:u1**************@TK2MSFTNGP09.phx.gbl...
This ones much simpler to follow:
http://www.codeproject.com/dotnet/MultiIcon.asp

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
"Brian Henry" <no****@nospam.com> schrieb:
I have icons which contain 16x16, 24x24, and 32x32 icons in the single
file and it is embedded as a resource... I need to get a 16x16 icon only
out of it, how would i go about doing that? ive tried this


.NET Icon Explorer
<URL:http://vbaccelerator.com/article.asp?id=4567>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 21 '05 #4

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

Similar topics

1
by: Brian Henry | last post by:
I have an icon in my app as an embeded resource.. i am accessing it through the assemblies getmainfestresourcestream method of the assembly. The icon has a 32x32 and a 16x16 icon in the same icon...
3
by: Jo Franklin | last post by:
I am using icon.save to save icon files I've extracted using ExtractIconEx. when I save the large icon everything is fine, but when I save the small icon it looks distorted, and has a black (not...
0
by: Dennis | last post by:
I give up...I've searched and tried many things and can get the icon to a bitmap and resized from 32x32 to 16x16. However, I can't seem to get the new 16x16 bitmap converted back to an icon for...
6
by: farseer | last post by:
Hi, I created a new resouce ("app.resx") in my project and added an icon to this resource with name "IL_ICON". I would like to use this resource in some unmanaged code, in particular, with the...
1
by: louismanukonda | last post by:
I'm newbie to xml I have an xml grammer file contain image files, i have to display the contents with an xsl file. The issue is when i mouseover the images i need to display the corresponding...
5
by: Tom | last post by:
I have a main VB.NET application that loads another VB.NET DLL dynamically. Once I have done that, I would like to be able to 'get' the icon of a form in that dynamically loaded DLL. How would...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
0
by: Mark | last post by:
Hi I tried to find a solution to this a while back and more surfing today has yielded nothing usefull. I am using "extractAssociatedIcon" to get icons for a listview containing files etc....
3
by: SveinErik | last post by:
Hi, I'm trying to find a method to save bmp, jpg and png files as ico files, 16x16 size. I have managed to convert and save bmp files to icon, but only in 32x32 size. I can't figure out how to save...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.