Struct TextAnnotation

Struct Documentation

struct TextAnnotation

A text label on a 2D image.

Public Members

std::optional<foxglove::Timestamp> timestamp

Timestamp of annotation.

std::optional<Point2> position

Bottom-left origin of the text label in 2D image coordinates (pixels).

The coordinate uses the top-left corner of the top-left pixel of the image as the origin.

std::string text

Text to display.

double font_size = 0

Font size in pixels.

std::optional<Color> text_color

Text color.

std::optional<Color> background_color

Background fill color.