Results 1 to 10 of 10

Thread: Improving quality of Icons (Resolved)

  1. #1

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512

    Improving quality of Icons (Resolved)

    Ive got my code to extract the associated icons from the files and display them alongside the filename in my listview. the problem is that because the original icons are 32x32, im having to resize them to 16x16 using Stretchblt but the quality isnt as good as the 16x16 icons that Windows explorer shows. How do i resize the 32x32 icons to keep the quality as good as windows explorer?

    Thanks
    Last edited by Blobby; Jan 29th, 2003 at 07:07 PM.
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    If the file has it's own 16x16 icon, why not extract that instead?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    Is it possible that a file wont have a 16x16 icon???
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  4. #4
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456

    Re: Improving quality of Icons

    Originally posted by Blobby
    Ive got my code to extract the associated icons from the files and display them alongside the filename in my listview. the problem is that because the original icons are 32x32, im having to resize them to 16x16 using Stretchblt but the quality isnt as good as the 16x16 icons that Windows explorer shows. How do i resize the 32x32 icons to keep the quality as good as windows explorer?

    Thanks
    There is nothing much you can do, except try to find smaller neater icons.

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Blobby
    Is it possible that a file wont have a 16x16 icon???
    Yes. But it's also possible that a file wont have a 32x32 icon.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    One thing you can do is, go to www.datadynamics.com and download there Activebar 2.0 control from there download section. This control comes up with a Great Icon capture tool. Using that you can capture any icon from anywhere and resize it. They are pretty neat even after resizing. You might wanna give it a try. Other than that, I can't think of anything for you.

  7. #7

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    OK guys thanks for the responses. Im pretty much getting the hang of this VB malarky now, knowing whats possible, whats not, whats not worth bothering trying etc.

    Ive managed to extract the 16x16 icons perfectly now but Im not sure whats going to happen if a file hasnt got an icon. I guess ill just get a blank space.

    Anyway tahnsk for the imput i appreciate everyones help. Altho u may only take one answer in this forum, all other comments give a better understanding and all round view of the problem so all comments get equal marks.

    Thanks
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  8. #8
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    It won;t show a blank if a file does not have a icon. It will show the default windows icon. that little window.

  9. #9

    Thread Starter
    Frenzied Member Blobby's Avatar
    Join Date
    Oct 2001
    Location
    England
    Posts
    1,512
    Oh thats ok then, thates even better cos i wont have to cater for it.....isnt it time you went to bed?
    There are 3 types of people in this world.........those that can count, and those that can't.

    Blobby

  10. #10
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    Originally posted by Blobby
    Oh thats ok then, thates even better cos i wont have to cater for it.....isnt it time you went to bed?
    MY GF ain;t home today so whats the point in going to bed.

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