Graphics Libraries (HGL package)ContentsIndex
Graphics.HGL.Draw.Region
Portabilitynon-portable (requires concurrency)
Stabilityprovisional
Maintainerlibraries@haskell.org
Description
An efficient representation of sets of pixels.
Synopsis
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
data Region
emptyRegion :: Region
An empty region. This is not supported on Win32. It is possible to use an empty rectangle region instead.
rectangleRegion :: Point -> Point -> Region
A rectangular region, with the given points as opposite corners.
ellipseRegion :: Point -> Point -> Region
An elliptical region that fits in the rectangle with the given points as opposite corners.
polygonRegion :: [Point] -> Region
A polygonal region defined by a list of Points.
intersectRegion :: Region -> Region -> Region
The intersection of two regions.
unionRegion :: Region -> Region -> Region
The union of two regions.
subtractRegion :: Region -> Region -> Region
The part of the first region that is not also in the second.
xorRegion :: Region -> Region -> Region
The symmetric difference of two regions.
regionToGraphic :: Region -> Graphic
Fill a Region using the current Brush.
Produced by Haddock version 0.7