HGL-3.2.3.1: A simple graphics library based on X11 or Win32

Copyright(c) Alastair Reid, 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilitynon-portable (requires concurrency)
Safe HaskellNone
LanguageHaskell98

Graphics.HGL.Draw.Region

Description

An efficient representation of sets of pixels.

Synopsis

Documentation

emptyRegion :: Region Source

An empty region. This is not supported on Win32. It is possible to use an empty rectangle region instead.

rectangleRegion :: Point -> Point -> Region Source

A rectangular region, with the given points as opposite corners.

ellipseRegion :: Point -> Point -> Region Source

An elliptical region that fits in the rectangle with the given points as opposite corners.

polygonRegion :: [Point] -> Region Source

A polygonal region defined by a list of Points.

intersectRegion :: Region -> Region -> Region Source

The intersection of two regions.

unionRegion :: Region -> Region -> Region Source

The union of two regions.

subtractRegion :: Region -> Region -> Region Source

The part of the first region that is not also in the second.

xorRegion :: Region -> Region -> Region Source

The symmetric difference of two regions.

regionToGraphic :: Region -> Graphic Source

Fill a Region using the current Brush.