System.Drawing.Region.Intersect C# (CSharp) Method

Intersect() public method

Updates this Region to the intersection of itself with the specified GraphicsPath.
public Intersect ( GraphicsPath path ) : void
path System.Drawing.Drawing2D.GraphicsPath Path.
return void
        public void Intersect(GraphicsPath path)
        {
            var region = new Region(path);
            Intersect(region);
            region.Dispose();
        }

Same methods

Region::Intersect ( Rectangle rect ) : void
Region::Intersect ( RectangleF rect ) : void
Region::Intersect ( Region region ) : void

Usage Example

        public Region CombineAreas()
        {
            Region region = new Region();
            region.MakeEmpty();

            foreach (Area area in Areas)
            {
                region.Union(area.Region);
            }

            region.Intersect(new Region(Crop.Bounds));

            return region;
        }
All Usage Examples Of System.Drawing.Region::Intersect