Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リージョンがあり、そこから n 個の Rectangles を差し引いています。残りのすべてのスペースを四角形で取得する必要があります。それを行う方法はありますか?
ありがとう
まず、領域に曲線が含まれている場合、得られる長方形のセットは近似値である可能性があることに注意してください。
次に、インデンティ マトリックスを使用してGetRegionScansを呼び出してみます。
RectangleF[] rects = region.GetRegionScans(new Matrix());