Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw raster images in Canvas #582

Closed
savente93 opened this issue Oct 27, 2020 · 4 comments
Closed

Draw raster images in Canvas #582

savente93 opened this issue Oct 27, 2020 · 4 comments
Labels
image question Further information is requested rendering

Comments

@savente93
Copy link

I've been trying to make an app that can make simple image annotations. As far as I can see Image doesn't impl Layer, meaning that I can't add it to a Canvas. This seems like a good thing to me, especially since a "paint clone" is mentioned in the Roadmap? I'm wondering how easy this would be to implement, and whether this would be the correct way to go about it, or whether there is an easier way. If it's not too complicated, I'd be willing to try and make a PR for it. Thoughts?

@hecrj hecrj added the question Further information is requested label Oct 28, 2020
@tinaun
Copy link

tinaun commented Oct 31, 2020

I would like a Frame.draw_image(imageRect, canvasRect) function, much like the function in js's canvas

@hecrj hecrj changed the title Should Image impl Layer? Draw raster images in Canvas Jan 19, 2022
@shssoichiro
Copy link

Hi, I wanted to see if there was any update on this, or if someone had found a workaround for it? This is a blocker for the project I'm currently working on, where I want to render an RGB image as the base layer in a canvas, then draw annotations, grids, etc. on top of it.

@hardesh
Copy link

hardesh commented May 1, 2023

Hi, I'm also looking for this. Is there any update on this?

jtojnar added a commit to jtojnar/iced that referenced this issue Nov 28, 2023
jtojnar added a commit to jtojnar/iced that referenced this issue Nov 29, 2023
@justDeeevin
Copy link

resolved by #2537. Use Frame::draw_image or Frame::draw_svg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
image question Further information is requested rendering
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants