dlib.image.canvas

Simple 2D rendering engine

Members

Classes

Canvas
class Canvas

A simple 2D vector engine inspired by HTML5 canvas. Supports rendering arbitrary polygons and cubic Bezier paths, filled and outlined. Not real-time.

Enums

SegmentType
enum SegmentType

Type of a path segment

Functions

pointInPolygon
bool pointInPolygon(Vector2f p, Vector2f[] poly)
Undocumented in source. Be warned that the author may not have intended to support it.
pointInPolygonAAFast
float pointInPolygonAAFast(Vector2f p, Vector2f[] poly)
Undocumented in source. Be warned that the author may not have intended to support it.
sqrDistanceToLineSegment
float sqrDistanceToLineSegment(Vector2f a, Vector2f b, Vector2f p)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

CanvasState
struct CanvasState

General options for drawing things

ContourSegment
struct ContourSegment

Path segment

Meta

Authors

Timur Gafarov