I want a function which will accept two StdPicture objects, compare them (on a byte to byte basis), and return True if they match. Assumably, you will need create a GDI bitmap from the passed object and them do the comparision from there, using GetBitmapBits or something better. Bitmaps *and* icons must be supported by this routine. Probably most compares will be made againts icons, so it is essential that this is supported, and from the same method. Also, all bitmap color depths need to be supported... I know from my own experiments that the bitmap strucutre is different for the different depths, *all* must be supported. Also, to clarify what I mean by the differences which will cause the function to return false: * The image dimensions do not match * The color depths are different * The image content is different Must be fast! This method will be used to compare several thousand images, so must be as fast as possible. I would prefer a Visual Basic source code only solution, however if someone can program a C or Delphi stand alone DLL which I can call via VB's Declare statements, that is fine... for once I'm not limited to having as few dependencies as possible. However I cannot accept bids for .net languages such as VB.net or C#. If it's a VB code solution, the following apply - no silly tricks with PictureBoxes or any other control or form. I simply want to pass in my two objects without knowing or caring their formats or color depths, and the routine does it's work and returns a result. If it's a non-VB solution, I would need Visual Basic examples on how to use it, and test it, as I have no knowledge of other languages and so most likely will be unable to modify the source or even be able to see what its doing. Also, if the exported functions cannot have StdPicture objects passed to them, you will need to provide a simple wrapper to convert the picture into the GDI handles your function accepts so that I can verify it works fully. Notes on format: Primarily, this routine will be comparing images in icon format (icon, cursor) and bitmap format (bmp, dib and rle).
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased.
Any variant of Windows 98 and higher. Windows 95 support would be nice, but if you need to use API's only provided by 98+, that's fine.