Skip to main content

stroke

Function stroke 

Source
pub fn stroke<P: Pixel>(
    bitmap: &mut Bitmap<P>,
    clip: &Clip,
    path: &Path,
    pipe: &PipeState<'_>,
    src: &PipeSrc<'_>,
    matrix: &[f64; 6],
    params: &StrokeParams<'_>,
)
Expand description

Top-level stroke entry point.

Mirrors Splash::stroke.

Steps:

  1. Flatten curves.
  2. Apply dashing if a dash array is set.
  3. Choose hairline (zero line-width) or wide rendering.