Home  >  Article  >  Backend Development  >  Method usage of C# System.Drawing.Region class (illustration)

Method usage of C# System.Drawing.Region class (illustration)

黄舟
黄舟Original
2017-03-13 11:02:524308browse

This example uses two rectangles A and B to demonstrate the functions of each method of the System.Drawing.Region class.

Draw two rectangles


Get the part of the target rectangle that does not intersect with this Region


Get the part of this Region that does not intersect with the target rectangle


##Get the intersection of the two rectangles


Get the union of two rectangles


Get the disjoint parts of the union of two rectangles


Initialize this System.Drawing.Region

object to infinite internal


Display RegionData information


The above is the detailed content of Method usage of C# System.Drawing.Region class (illustration). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn