Expand description
Anti-aliased line rendering basics.
Port of agg_line_aa_basics.h + agg_line_aa_basics.cpp.
Constants, coordinate converters, LineParameters struct, and bisectrix.
Structs§
- Line
Parameters - Parameters describing a line segment for AA rendering.
Constants§
- LINE_
MAX_ COORD - LINE_
MAX_ LENGTH - LINE_
MR_ SUBPIXEL_ MASK - LINE_
MR_ SUBPIXEL_ SCALE - LINE_
MR_ SUBPIXEL_ SHIFT - LINE_
SUBPIXEL_ MASK - LINE_
SUBPIXEL_ SCALE - LINE_
SUBPIXEL_ SHIFT
Functions§
- bisectrix
- Calculate the angle bisector at the junction between two consecutive lines.
- clip_
line_ segment - Integer line segment clipping (Liang-Barsky).
- fix_
degenerate_ bisectrix_ end - Fix degenerate bisectrix at line end.
- fix_
degenerate_ bisectrix_ start - Fix degenerate bisectrix at line start.
- line_
coord - Convert f64 to subpixel integer coordinate.
- line_
coord_ sat - Convert f64 to subpixel integer coordinate with saturation.
- line_
dbl_ hr - Integer to double-high resolution.
- line_hr
- Medium-to-high resolution.
- line_mr
- High-to-medium resolution.