コード例 #1
0
        private IEnumerable <Rectangle> GetReductionIdentityRectangles(Rectangle source)
        {
            var regionCreationStrategy = new NonOverlappingRegionCreationStrategy(5, 5);

            return(regionCreationStrategy.GetRegions(source));
        }
コード例 #2
0
        private IEnumerable <Rectangle> GetLowResRectangles(Rectangle source)
        {
            NonOverlappingRegionCreationStrategy regionCreationStrategy = new NonOverlappingRegionCreationStrategy(10, 10);

            return(regionCreationStrategy.GetRegions(source));
        }