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

How do I stretch an image #1014

Closed
foodornt opened this issue Aug 29, 2021 · 3 comments · Fixed by #1219
Closed

How do I stretch an image #1014

foodornt opened this issue Aug 29, 2021 · 3 comments · Fixed by #1219
Labels
feature New feature or request good first issue Good for newcomers image layout
Milestone

Comments

@foodornt
Copy link

I want to create an image without keeping the aspect ratio

is that possible with iced

@yusdacra
Copy link
Contributor

Simplest way would be to resize the image with the image crate and store the resulting image in memory as a Handle::Pixel. I'm sure you could modify the Image widget to not respect the aspect ratio, but I didn't look into that.

@foodornt
Copy link
Author

Excellent, thank you!

@hecrj hecrj added the feature New feature or request label Aug 30, 2021
@hecrj hecrj added this to the 0.4.0 milestone Aug 30, 2021
@hecrj
Copy link
Member

hecrj commented Aug 30, 2021

I think we could replicate the new logic of the image::Viewer introduced in #885. I'll look into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request good first issue Good for newcomers image layout
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants