Skip to content

Thickness and In Bounds check - keyword args#31

Open
Codyk12 wants to merge 16 commits into
JuliaImages:masterfrom
Codyk12:thickness
Open

Thickness and In Bounds check - keyword args#31
Codyk12 wants to merge 16 commits into
JuliaImages:masterfrom
Codyk12:thickness

Conversation

@Codyk12

@Codyk12 Codyk12 commented Jun 25, 2019

Copy link
Copy Markdown
Contributor

Added the ability to draw lines with a thickness

@johnnychen94 johnnychen94 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea here and it's a nice job; there's nothing much I can comment.

Can you add some tests to this new thickness keywords?

And don't forget to delete the .DS_Store file you uploaded 😄

Comment thread src/circle2d.jl Outdated
Comment thread src/core.jl Outdated
Comment thread src/core.jl Outdated
Comment thread src/cross.jl Outdated
@johnnychen94

Copy link
Copy Markdown
Member

To fix CI error on 1.0:

# src/compat.jl
if v"1.0" <= VERSION < v"1.1"
    isnothing(x) = x===nothing
end

@Codyk12 Codyk12 changed the title Thickness Thickness and In Bounds check Aug 27, 2019
@Codyk12 Codyk12 changed the title Thickness and In Bounds check Thickness and In Bounds check - keyword args Aug 27, 2019

@johnnychen94 johnnychen94 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your hard work, I'm getting to understand the code logic here :D

Comment thread src/core.jl Outdated
Comment thread src/core.jl
Comment thread test/core.jl
Comment thread test/line2d.jl Outdated
Comment thread src/core.jl Outdated

@johnnychen94 johnnychen94 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since #29 is a subset of this PR, I think it doesn't need to be merged?

Comment thread src/core.jl

Overlays an image on an larger image. (x, y) is the center for placing the image
"""
struct ImageMap <: Drawable

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the usage of this? I can't find anywhere this struct is used in your PR.

@jiviteshjain jiviteshjain mentioned this pull request Jul 23, 2020
@agarret7

agarret7 commented Aug 7, 2020

Copy link
Copy Markdown

Are there any plans for merging this soon? My use case relies on thickness of lines and otherwise I'll have to fallback to using PIL with PyCall.

@johnnychen94

Copy link
Copy Markdown
Member

We need to merge #29 first and rebase this PR on the top of that

I'll see if that one is good to merge.

@Codyk12

Codyk12 commented Aug 7, 2020

Copy link
Copy Markdown
Contributor Author

Unfortunately, this library doesn't have the biggest community supporting it, so we decided to try to use another drawing library to use in the library we're making, hopefully, these features get put merged in soon though.

@ashwanirathee

Copy link
Copy Markdown
Member

@Codyk12 can I give it a go?I think I can do it in a more simplified way with RectanglePoints #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants