Extract different sized icons from a file
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Extract different sized icons from a file

  1. #1
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    72

    Lightbulb Extract different sized icons from a file

    I know ExtractIcon and ExtractIconEx does a bit what I want but it is missing a really important feature for me.

    How can you extract an icon in a file 48x48 and 256x256 if it has one or any other sizes. All APIs extract only 16x16 or 32x32 icons I want to extract other ones and put them in a picturebox. I don't want to resize the icon in VB by resizing the picturebox since the quality is not the same and the icon is not always the same.
    David Richard

  2. #2
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,987

    Re: Extract different sized icons from a file

    I've used Microangelo, which creates ALL formats in ONE file. Not sure how to extract them, but, you can save one size in ANY format. Even create an ICON from a JPG
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jul 2005
    Location
    Quebec, Canada
    Posts
    72

    Lightbulb Re: Extract different sized icons from a file

    I do not want a program to do this, I've got my own that I like very well. I want to integrate this in my VB 6 app.

    I want to load an icon size 48x48 or 256x256 or 24x24, etc, from an EXE file (example) and show the icon in a picture box.

    It's a s simple as that.
    David Richard

  4. #4
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,987

    Re: Extract different sized icons from a file

    I'm sure that if it were publicized, we'd be able to find it on the web...
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  5. #5
    Join Date
    Apr 2009
    Posts
    394

    Re: Extract different sized icons from a file

    I believe it is out there... Where, I don't know but I believe I have seen something like what you are talking about... Maybe it was at PSC??? you could also see http://www.wotsit.org to get down and dirty with the ico format...

    Edit: Nope! is was vbaccelerator.com... http://www.vbaccelerator.com/home/VB...or/article.asp

    Good Luck
    Last edited by vb5prgrmr; February 20th, 2010 at 12:24 AM.

Tags for this Thread

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center