Devasundaram has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Figure difference
by marto (Cardinal) on Sep 05, 2007 at 12:34 UTC
      Hi Martin, Thanks for this help. Deva
Re: Figure difference
by Joost (Canon) on Sep 05, 2007 at 14:11 UTC
    What kind of figure? I'll assume you're dealing with raster images. What kind of image format are you using? Do you mean *completely* black/white or *mostly* black/white?* Do you care about alpha channels (i.e. transparency)?

    As a wild stab in the dark I'd suggest GD's getPixel() and rgb() methods.

    *) and I note that greyscale images that are *mostly white* usually have *figures* that are mostly black.