public Rectangle[] FindAll(Bitmap searchFor, Rectangle searchArea, Point startFrom, int maxCount, int borderWidth, int tolerance) { _borderWidth = borderWidth; if (_borderWidth < 1) { _borderWidth = 1; } var image = BitmapHelper.CloneBitmap(searchFor); var rect = new Rectangle(borderWidth, borderWidth, image.Width - 2 * borderWidth, image.Height - 2 * borderWidth); BitmapHelper.MaskRectangle(image, rect, true); return(base.FindAll(image, searchArea, startFrom, maxCount, tolerance)); }
protected void MaskRectangle(Rectangle R) { BitmapHelper.MaskRectangle(_searchOnData, R, true); }