Draw non horizontal thick lines
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- computer-graphics
Research direction
Start by reviewing issue #97 and the existing draw_filled_rect approach described here, then compare the requested two-point, thickness-based behavior with Pillow's ImageDraw.line reference. Done means imageproc supports drawing non-horizontal thick lines from two points with a specified thickness and documents any relevant workaround or limitations.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Rust
- Stars
- 979
- Forks
- 181
- Avg merge
- 5m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from image-rs/imageproc
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
All issues in image-rs/imageproc
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100