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

Xor() public method

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

Same methods

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

Usage Example

Beispiel #1
0
		public void ctor_GraphicsPath () {
			GraphicsPath path = new GraphicsPath ();
			path.AddRectangle (rect);
			Region r1 = new Region (path);
			r1.Xor (r);
			Assert.IsTrue (r1.IsEmpty (t.Graphics));
		}
All Usage Examples Of System.Drawing.Region::Xor