Module imageproc::drawing [] [src]

Helpers for drawing basic shapes on images.

Structs

Point

A 2D point.

Functions

draw_antialiased_line_segment

Draws as much of the line segment between start and end as lies inside the image bounds. The parameters of blend are (line color, original color, line weight). Uses Xu's line drawing algorithm.

draw_antialiased_line_segment_mut

Draws as much of the line segment between start and end as lies inside the image bounds. The parameters of blend are (line color, original color, line weight). Uses Xu's line drawing algorithm.

draw_convex_polygon

Draws as much of a filled convex polygon as lies within image bounds. The provided list of points should be an open path, i.e. the first and last points must not be equal. An implicit edge is added from the last to the first point in the slice.

draw_convex_polygon_mut

Draws as much of a filled convex polygon as lies within image bounds. The provided list of points should be an open path, i.e. the first and last points must not be equal. An implicit edge is added from the last to the first point in the slice.

draw_cross

Draws a colored cross on an image. Handles coordinates outside image bounds.

draw_cross_mut

Draws a colored cross on an image in place. Handles coordinates outside image bounds.

draw_cubic_bezier_curve

Draws as much of a cubic bezier curve as lies within image bounds.

draw_cubic_bezier_curve_mut

Draws as much of a cubic bezier curve as lies within image bounds.

draw_filled_circle

Draw as much of a circle and its contents as lies inside the image bounds.

draw_filled_circle_mut

Draw as much of a circle, including its contents, as lies inside the image bounds.

draw_filled_ellipse

Draw as much of an ellipse, including its contents, as lies inside the image bounds. Uses Midpoint Ellipse Drawing Algorithm. (Modified from Bresenham's algorithm) (http://tutsheap.com/c/mid-point-ellipse-drawing-algorithm/)

draw_filled_ellipse_mut

Draw as much of an ellipse, including its contents, as lies inside the image bounds. Uses Midpoint Ellipse Drawing Algorithm. (Modified from Bresenham's algorithm) (http://tutsheap.com/c/mid-point-ellipse-drawing-algorithm/)

draw_filled_rect

Draw as much of a rectangle, including its boundary, as lies inside the image bounds.

draw_filled_rect_mut

Draw as much of a rectangle, including its boundary, as lies inside the image bounds.

draw_hollow_circle

Draw as much of a circle as lies inside the image bounds.

draw_hollow_circle_mut

Draw as much of a circle as lies inside the image bounds.

draw_hollow_ellipse

Draw as much of an ellipse as lies inside the image bounds. Uses Midpoint Ellipse Drawing Algorithm. (Modified from Bresenham's algorithm) (http://tutsheap.com/c/mid-point-ellipse-drawing-algorithm/)

draw_hollow_ellipse_mut

Draw as much of an ellipse as lies inside the image bounds. Uses Midpoint Ellipse Drawing Algorithm. (Modified from Bresenham's algorithm) (http://tutsheap.com/c/mid-point-ellipse-drawing-algorithm/)

draw_hollow_rect

Draws as much of the boundary of a rectangle as lies inside the image bounds.

draw_hollow_rect_mut

Draws as much of the boundary of a rectangle as lies inside the image bounds.

draw_line_segment

Draws as much of the line segment between start and end as lies inside the image bounds. Uses Bresenham's line drawing algorithm.

draw_line_segment_mut

Draws as much of the line segment between start and end as lies inside the image bounds. Uses Bresenham's line drawing algorithm.

draw_text

Draws colored text on an image in place. scale is augmented font scaling on both the x and y axis (in pixels). Note that this function does not support newlines, you must do this manually

draw_text_mut

Draws colored text on an image in place. scale is augmented font scaling on both the x and y axis (in pixels). Note that this function does not support newlines, you must do this manually