Results 1 to 9 of 9

Thread: [VB6] - Compare images the fast way

Threaded View

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    [VB6] - Compare images the fast way

    This can take 2 (large) pictures and tell you if they're the same or different much quicker than using GetPixel or other methods.

    This uses the GetDIBits() API function.

    If anyone has suggestions to make it faster than it naturally is than let me know.

    To use the code, just add ModImageCompare.bas to your project and call the ImagesSame() function, like this:

    vb Code:
    1. Dim bolSame As Boolean
    2.  
    3. bolSame = ImagesSame(PictureBox1, PictureBox2)
    4. MsgBox bolSame
    Attached Images Attached Images  
    Attached Files Attached Files

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