-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Object Rotation for Binary Images #6193
Comments
Hi, what version are you using (v8, v9, etc.)? When I try your to rotate a binary image it doesn't appear correctly, so that's definitely a concern. However I do not get a memory error. I think an error is being encountered and the program proceeds with a Also, does it work with the binary image when it's not rotated? |
Hi, I use v9.1.0, I can see binary images when it is not rotated, but I have not tried unbinary pictures. All things are enabled as you suggested |
I have added it as c array not binary and it is rotated with lv_img_set_angle function successfully. But when I try it with binary image, no image is shown on the screen. Second issue is angle value. For one picture when I write there 434, I see MemManageHandler fault, but when I write 435, I don't see this fault, screen can load but image doesn't shown in screen. I also tried it negative values same result as positive ones. I have tried these 434,435 values for different image, it does not work. For both value I see MemManageHandler so it is related with picture(some of it's parameters maybe width height). But for sure I could not see rotated binary image on the screen. |
I use ARGB8888 color format. There is written sth useful here I need to find a way to rotate binary file :/ I have to use them as binary format for update strategy... |
Ah, so it's not supported for now. Good find. I think some undefined behavior is reasonable when you try to transform it, then. I could not reproduce the The situation right now is a bit weird.
The bin decoder decoding incrementally is supposed to be helpful, but it actually punishes users who want to transform the image. Even if the image cache is big enough to cache the whole image after the first decode, it still can't be transformed even though the whole image is now available. I think something could be done about this. Maybe a flag for the image decoder that tells it to decode the whole image immediately. For your requirement of needing to load an image dynamically, there are a few options! 🙂 The simplest is to just store the image on your storage device as PNG! |
We need some feedback on this issue. Now we mark this as "stale" because there was no activity here for 14 days. Remove the "stale" label or comment else this will be closed in 7 days. |
As there was no activity here for a while we close this issue. But don't worry, the conversation is still here and you can get back to it at any time. So feel free to comment if you have remarks or ideas on this topic. |
Introduce the problem
I use IMXRT1170 MCU and LVGL v9.1.0. I have a simple problem but I don't know the reason. I want to see my image rotated with lv_img_set_angle function but I face with MemManage_Handler. What could be the reason ?
Proposal
No response
The text was updated successfully, but these errors were encountered: