Results 1 to 7 of 7

Thread: Fast way to check if an image file (JPG, BMP, etc) is viewable?

Threaded View

  1. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Fast way to check if an image file (JPG, BMP, etc) is viewable?

    Hmmm, maybe it isn't the testing that is slow but other processes. VB can load images quite fast. And though some may not be viewable in VB it doesn't mean it is corrupted. For example, VB has real problems with modern day icons, but the icons are not corrupted. VB can't display PNG/TIFF natively but it doesn't mean the image is corrupted.

    If you give us more details of what you are trying to do and how you are doing it, we may be able to give better advice.

    Edited: Regarding DLLs, there are several; here are 2 free ones. GDI+ that comes with XP & above and free download with 98 & above from MSDN. FreeImage library is another; there's examples of its usage in the Code Bank section. Simply search there for FreeImage. But answering my question may be the best answer . Remember what I said above; even if those other DLLs say it is a valid image format, doesn't mean VB can load it.
    Last edited by LaVolpe; Feb 16th, 2010 at 09:01 PM.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

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