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

Intersect() public method

Updates this Region to the intersection of itself with the specified Region.
public Intersect ( Region region ) : void
region Region Region.
return void
        public void Intersect(Region region)
        {
            regionList.Add(new RegionEntry(RegionType.Path, region.solution, region.solution, RegionClipType.Intersection));
            calculateRegionPath (ClipType.ctIntersection);
        }

Same methods

Region::Intersect ( GraphicsPath path ) : void
Region::Intersect ( Rectangle rect ) : void
Region::Intersect ( RectangleF rect ) : 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