Skip to content

Commit 57e4991

Browse files
Add path conversion, containment and intersection to Region
Region(IPath, IntersectionRule) scan-converts a path into the integer pixels whose centres lie inside it. Contains(Region) and Intersects(Region) compare two regions band by band. The integer clip rounds the path bounds outwards, the same rounding the library applies to clip bounds, so no pixel whose centre lies inside the path is lost.
1 parent f5cc287 commit 57e4991

2 files changed

Lines changed: 792 additions & 4 deletions

File tree

0 commit comments

Comments
 (0)