Portability | non-portable (requires concurrency) |
---|---|
Stability | provisional |
Maintainer | libraries@haskell.org |
Safe Haskell | None |
An efficient representation of sets of pixels.
- data Region
- emptyRegion :: Region
- rectangleRegion :: Point -> Point -> Region
- ellipseRegion :: Point -> Point -> Region
- polygonRegion :: [Point] -> Region
- intersectRegion :: Region -> Region -> Region
- unionRegion :: Region -> Region -> Region
- subtractRegion :: Region -> Region -> Region
- xorRegion :: Region -> Region -> Region
- regionToGraphic :: Region -> Graphic
Documentation
An empty region. This is not supported on Win32. It is possible to use an empty rectangle region instead.
rectangleRegion :: Point -> Point -> RegionSource
A rectangular region, with the given points as opposite corners.
ellipseRegion :: Point -> Point -> RegionSource
An elliptical region that fits in the rectangle with the given points as opposite corners.
polygonRegion :: [Point] -> RegionSource
A polygonal region defined by a list of Point
s.
intersectRegion :: Region -> Region -> RegionSource
The intersection of two regions.
unionRegion :: Region -> Region -> RegionSource
The union of two regions.
subtractRegion :: Region -> Region -> RegionSource
The part of the first region that is not also in the second.