uuum Posted February 3, 2013 Share Posted February 3, 2013 FindBitmapMaskTolerance(Mask: TSCARBitmap; var x: LongInt; var y: LongInt; var x1: LongInt; var y1: LongInt; var x2: LongInt; var y2: LongInt; Tolerance: LongInt; ContourTolerance: LongInt): Boolean Has anyone used this feature and would like to share knowledge? Perhaps an example of this function, please. Very little information on this topic. I do not understand the (x, y), (x1, y1) – (this Area?). And what is (x2, y2) Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted February 4, 2013 Share Posted February 4, 2013 Haven't played much with bitmap mask. But to answer your question about x,y,x1,y1,x2,y2: if the bitmap mask is found it returns the coordinates in (x,y). It searches inside a rectangular area defined by the upper left corner (x1, y1) and the lower right corner (x2, y2) for the bitmap mask. Quote Link to comment Share on other sites More sharing options...
Janilabo Posted February 4, 2013 Share Posted February 4, 2013 (edited) X1, Y1, X2, Y2 = XS, YS, XE, YE. : Bitmap mask is bitmap with only black (0) and white (16777215) pixels. Black being the background/transparency and white being the object's pixels. Edited February 4, 2013 by Janilabo Quote Link to comment Share on other sites More sharing options...
uuum Posted February 4, 2013 Author Share Posted February 4, 2013 Thank you friends for your reply. I suspected that (x2, y2) are the coordinates returned thanks to you I know it's (x, y). Write yourself a few things today, including the function and see exactly how it works. Once again, thank you very much. Quote Link to comment Share on other sites More sharing options...