Exemple #1
0
        public static HImage CropRectangle1(this HImage image,
                                            HRectangle1 rectangle1)
        {
            var croppedImage = image.CropRectangle1(rectangle1.Row1, rectangle1.Column1, rectangle1.Row2,
                                                    rectangle1.Column2);

            return(croppedImage);
        }
        public static HRectangle1 GetSmallestRectangle1(this HRegion region)
        {
            int row1;
            int column1;
            int row2;
            int column2;

            region.SmallestRectangle1(out row1, out column1, out row2, out column2);
            var smallestRect = new HRectangle1()
            {
                Row1    = row1,
                Column1 = column1,
                Row2    = row2,
                Column2 = column2,
            };

            return(smallestRect);
        }