Example #1
0
        public bool BrIntersectsAnotherBr(BoundingRect br)
        {
            foreach (var item in BrList)
            {
                //  Check to see if any part of rect is in another rect - Onlt need to check top row??
                // Hack - embed in algorith better.  Should not need??
                //

                for (int x = item.OriginalUpperLeftX; x < item.OriginalBottomRightX + 1; x++)
                {
                    for (int y = 0; item.OriginalUpperLeftY < item.OriginalBottomRightY + 1; y++)
                    {
                        if (ContainsPoint(x, y))
                        {
                            return(true);
                        }
                    }
                }
            }
            return(false);
        }
Example #2
0
 private void SaveSubFrame(string fileName, BoundingRect item)
 {
     item.SaveToCsv(fileName);
 }