Author Topic: Compare two TImagingBitmap  (Read 2754 times)

Offline carmas123

  • Imaging User
  • *
  • Posts: 1
    • View Profile
Compare two TImagingBitmap
« on: 8 September 2009, 13:05:18 »
Hi all, how i can compare very fast 2 TImagingBitmap for check if identical?

Thanks 2 all

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 360
    • View Profile
    • Galfar's Homepage
Re: Compare two TImagingBitmap
« Reply #1 on: 8 September 2009, 13:33:07 »
Since TImagingBitmap is basically regular VCL TBitmap, you can use
methods described here (scanline based one is better) or here.

First check if width, height, and pixel formats match, then compare pixels if needed.

I'm planning image compare/diff functions for Imaging, but these will be for native Imaging image types (TImageData, TMultiImage, etc.), not TBitmaps.