insightdock::charts::ImageBuffer::draw_line

Filled antialiased line segment with round caps.

Synopsis

Declared in <insightdock/image_buffer.h>
void
draw_line(
    float x0,
    float y0,
    float x1,
    float y1,
    float width,
    Color const& color);

Description

Pixel centers are at half-integer coordinates; align a horizontal/vertical 1px stroke with these centers for a fully opaque interior.

Parameters

Name Description
width Stroke width in pixels (≥ 1).
color RGBA color with 8-bit per channel.

Created with MrDocs