Jump to content
  • Advertisement
Sign in to follow this  
HydrogenCyanide

Comparing Bitmaps

This topic is 5056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to know if bitmap1 (a bitmap of an Internet Explorer window, for example) has bitmap2 (a bitmap of the gamedev.net logo, for example) anywhere in it, and where. How do I do this with the Windows API with MSVC++ 6? [Edited by - HydrogenCyanide on December 12, 2004 11:14:21 AM]

Share this post


Link to post
Share on other sites
Advertisement
u can do it visual basic if ur prepared to wait for a year for it to process. Look into GetPixel() in VB.

ace

Share this post


Link to post
Share on other sites
in C u could open up the files in binary mode, and read each byte of data in from each file and compare.

That'd be much quicker.

ace

Share this post


Link to post
Share on other sites
You could compare file names, but that would be easily fooled if the other picture was just renamed. Besides that, you have to compare bitmaps byte by byte to check for exact copies. There are probably some other more complicated ways to check for similiar images with complicated algorithms... But I don't know any :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!