A table of horizontal scan-line segments - used for rasterising Paths. More...
#include <juce_EdgeTable.h>
EdgeTable::EdgeTable | ( | Rectangle< int > | clipLimits, |
const Path & | pathToAdd, | ||
const AffineTransform & | transform ) |
Creates an edge table containing a path.
A table is created with a fixed vertical range, and only sections of the path which lie within this range will be added to the table.
clipLimits | only the region of the path that lies within this area will be added |
pathToAdd | the path to add to the table |
transform | a transform to apply to the path being added |
Creates an edge table containing a rectangle.
Creates an edge table containing a rectangle.
|
explicit |
Creates an edge table containing a rectangle list.
|
explicit |
Creates an edge table containing a rectangle list.
|
noexcept |
Scales all the alpha-levels in the table by the given multiplier.
void EdgeTable::optimiseTable | ( | ) |
Reduces the amount of space the table has allocated.
This will shrink the table down to use as little memory as possible - useful for read-only tables that get stored and re-used for rendering.
|
noexcept |
Iterates the lines in the table, for rendering.
This function will iterate each line in the table, and call a user-defined class to render each pixel or continuous line of pixels that the table contains.
iterationCallback | this templated class must contain the following methods: Helper class for using linear interpolation between a begin and an end value. Definition juce_StaticAnimationLimits.h:77 |
References isPositiveAndBelow(), jassert, table, x, and y.