A class for rasterizing vector outlines.
More...
#include <murl_util_outline_rasterizer.h>
A class for rasterizing vector outlines.
|
class | Handle |
| A handle for rasterizing individual vector outlines. More...
|
|
◆ Acquire()
Acquire a rasterizer.
Each call to Acquire() must have a corresponding call to Release(), when the rasterizer is not needed anymore.
- Returns
- The rasterizer instance.
◆ Release()
Release a previously acquired rasterizer.
- Parameters
-
rasterizer | A reference to a pointer of the rasterizer to be released. |
- Returns
- true if successful.
◆ BeginRasterizing()
const Handle* Murl::Util::OutlineRasterizer::BeginRasterizing |
( |
| ) |
|
Begin rasterizing a sequence of outlines.
Rasterizing any number of outlines must always be enclosed within paired calls to BeginRasterizing() and EndRasterizing(). These methods ensure that no two threads are using the same rasterizer instance concurrently, by locking/unlocking an internal mutex.
- Returns
- A pointer to a rasterizer handle, or null if failed.
◆ EndRasterizing()
Bool Murl::Util::OutlineRasterizer::EndRasterizing |
( |
const Handle * |
handle | ) |
|
End rasterizing a sequence of outlines.
- Parameters
-
- Returns
- true if successful.
◆ Rasterize()
Rasterize an outline.
- Parameters
-
handle | A handle obtained via BeginRasterizing(). |
outline | The resource outline object to rasterize. |
outlineColor | The outline color. |
backColor | The background color. |
surface | The output surface to rasterize to. |
posX | The horizontal position of the outline in the surface. |
posY | The vertical position of the outline in the surface. |
scaleX | The horizontal scale factor. |
scaleY | The vertical scale factor. |
embolden | The emboldening value. A value of 0.0 renders an unmodified outline, a negative value produces a thinner outline. |
- Returns
- true if successful.
The documentation for this class was generated from the following file:
- murl_util_outline_rasterizer.h