Rasterizing Shapes
CVL provides global functions to rasterize shapes into a pel buffer. Rasterizing is different from drawing in the following ways:
- A rasterized shape is filled in. That is, more than just its boundary is shown.
- A rasterized shape is converted into a form that may be displayed on a grid of pixels. This can produce digitization errors near the edges of the shape because pixels have finite size.
The cfRasterizeContour() global function can rasterize any type of ccShape-derived object into a pel buffer, including ccRegionTrees, ccContourTrees, and ccGeneralShapeTrees. The cfRasterize() global function rasterizes only ccRegionTrees into a pel buffer.