Does anyone here have a small program for creating an Icon with a transparent background? The one I got from planetsource was incomplete. I tried making a 24x24 Bmp first in Paint, PhotoEditor and Photoshop (then renaming to Ico) but I couldn't make the background transparent.
I'll attach the pics in case someone has a program but it's too large to make available, or is licensed, he/she can convert it for me. A small prog would be nice though so I can also learn from the code.
Blank.bmp is supposed to be a transparent image with nothing in it. So if what I'm looking for in the ImageList isn't there I can return a blank transparent pic.
Put the images in an ImageList. Set the MaskColor property to the color you want to be transparent. Put a PictureBox on the form and use code simular to this:
VB Code:
Picture1.Picture = ImageList1.ListImages(1).ExtractIcon '<- change the index if needed
Hmmm... are you sure you've set the mask color correctly? Attached is an icon editor I made a few years ago, it's a bit limited since you can only save images of the size 32x32 with 16 colors. But it has a few other nice features: You can extract an icon from any file or grab one directly from the screen. You can also create icon libaries and export an iccn as a cursor files. You may also create ANI files with it. Full source code included.
i have the same problem and it is driving me nuts.
I have microangelo. I set as transparent the white color.
I set the mask color in the imagelist to White .But when it loads the menu icons are not transparent!
You can download the source for both the editor and the ocx.
NOTE: You need to download the vbAccelerator VB6 SSubTmr Binary file for most vbAccelerator projects to work. You can get it from the above link or from here: VB6 SSubTmr Binary