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

Rotate and Flip PlotImage. #1646

Closed
kkngsm opened this issue May 19, 2022 · 1 comment · Fixed by #3121
Closed

Rotate and Flip PlotImage. #1646

kkngsm opened this issue May 19, 2022 · 1 comment · Fixed by #3121
Labels
feature New feature or request

Comments

@kkngsm
Copy link

kkngsm commented May 19, 2022

Hi, I would like the ability to rotate and flip PlotImage.

Usually using Vec<_>.push(), if I want to append to the image data, it will be append to bottom.
However, in some cases (such as drawing a spectrogram) I may want to append to the left or right.
Therefore, we need the ability to rotate or flip the image to make it appear as if it is being added to the left or right.

The function is like widget::Image

PlotImage::new(/*inline*/)
    .rotate(angle, origin)
    .flip([true, false])

With the current functionality, the only way to do this is to Vec<Vec<u8>>, but this is inefficient.

@ThundR67
Copy link
Contributor

How do i rotate plot images for the time being?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants