user2250447
user2250447

Reputation: 50

Read regiondata as rectangles

I have a Region, from which I am subtracting n number of Rectangles, now I need to get all the remaining space in terms of rectangles. Is there a way of doing it?

Thanks

Upvotes: 0

Views: 497

Answers (1)

Rotem
Rotem

Reputation: 21917

First you should realize that any set of rectangles you get may be an approximation if the region contains any curves.

Second, try calling GetRegionScans with an indentity matrix.

RectangleF[] rects = region.GetRegionScans(new Matrix());

Upvotes: 1

Related Questions