Function imageproc::drawing::draw_filled_ellipse_mut
[−]
[src]
pub fn draw_filled_ellipse_mut<I>(
image: &mut I,
center: (i32, i32),
width_radius: i32,
height_radius: i32,
color: I::Pixel
) where
I: GenericImage,
I::Pixel: 'static,
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/)
The ellipse is axis-aligned and satisfies the following equation:
(x^2 / width_radius^2) + (y^2 / height_radius^2) <= 1