Skip to main content

Module line_aa_basics

Module line_aa_basics 

Source
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§

LineParameters
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.