Hi all.
Anybody know/tried a good tool for converting Pictures to Icons.
Thanx for reading/replying.
Printable View
Hi all.
Anybody know/tried a good tool for converting Pictures to Icons.
Thanx for reading/replying.
Well I don't really have a specific "tool" to convert
pictures to icons. Here's a simple way how to do it and
it works because I have made a program that does this.
I don't know if the insutrctions are clear because it's
been a long time since I made the program.
Load a picture from a picturebox into an ImageList and
use the ExtractIcon method to set the mouse cursor of
a control to your bitmap (which is in the ImageList now.)
Load the Control's mouseIcon into a second
PictureBox. The Second picturebox reconizes the bitmap
as a curor(or icon) thus, you should use the SavePicture
method and VB will save the picture in icon format.
Let me know if i'm not to clear or you can't get it working.
Thanx Megatron.
I'll try it.
Make it a bmp file then rename pic.bmp -> pic.ico.
DigitalError> Renaming the a *.bmp file to an *.ico
fill will show you a picture of it, but the format is
still a *.bmp.
If you try loading a renamed bmp as an Icon for an app
(or anything else), you'll probably get an error.
This example will save an icon file from clipboard. Make an imagelist and name it IMG.
-------------------------
SavePicture IMG.ListImages.Add(, , Clipboard.GetData(2)).ExtractIcon, DLG.filename
-------------------------
You can also change the Clipboard.GetData to Picture1.picture to save it into a icon. Be sure to clear the imagelist if you use it frequently...