Results 1 to 11 of 11

Thread: Bmp to Ico, or Icon Editor

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Bmp to Ico, or Icon Editor

    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.
    Attached Files Attached Files

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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:
    1. Picture1.Picture = ImageList1.ListImages(1).ExtractIcon '<- change the index if needed
    2. SavePicture Picture1.Picture, "c:\MyIcon.ico"

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    The one assigned to .Picture is ok. But the saved file loses the transparent background.

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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.
    Attached Files Attached Files

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    Thanks. I'll look over the code later. 32x32 is fine. I'll have to redraw the image anyway with the colors of yor app.

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You don't have to redraw the image, it will be converted to 16 colors when saved.

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    Still, I have to convert it to 32x32 and I finished doing so awhile ago. Image resize blurs the pic. Thanks again.

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Originally posted by leinad31
    Still, I have to convert it to 32x32 and I finished doing so awhile ago. Image resize blurs the pic. Thanks again.
    Hmmm.... You could have just copied the bitmap and pasted it into a new icon, it wouldn't have stretched the image...

  9. #9
    Addicted Member Xdream's Avatar
    Join Date
    Mar 2001
    Location
    Switzerland
    Posts
    194
    Hi leinad31

    Try downloading Microangelo V5.5 somewhere on the net. It's a great iconeditor with many features and it's available as a trial version

    Regards,
    Xdream

  10. #10
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694
    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!

    any help?
    thanks

  11. #11
    Lively Member
    Join Date
    Oct 2002
    Posts
    70

    Talking

    Try this:
    vbAccelerator Complete Icon Editor and OCX

    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

    Imp

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width