Draw non horizontal thick lines
Hi, Thanks for the nice library.
Following the issue https://github.com/image-rs/imageproc/issues/97, I understand the only way to draw a thick line is by using code similar to this:
draw_filled_rect(&img, Rect::at(128, 10).of_size(118, thickness), Rgb([240, 240, 255]));
But such rectangles are necessarily horizontal from what I understand. Would it be possible to have a functionality such as this? https://pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.ImageDraw.line (two points and a thickness)
Otherwise what could be a workaround?
Thank you
https://docs.rs/imageproc/0.21.0/imageproc/drawing/fn.draw_convex_polygon.html Lets you draw filled polygons. However, this makes no attempt to anti-alias the boundary of the polygon.
(If you plan on using this function, note that the next release of this library is likely to include https://github.com/image-rs/imageproc/pull/428 which renames the function to draw_polygon and makes it more general.)
Hi, thank you for your response. I would rather wait for the next version of the lib then.
Do you know when it is scheduled?
There's no fixed schedule for releases. I'll release a new version this weekend to pick up this change.
So much for "this weekend". I've published a new version just now.