The content of snapshot widget is wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-07-24 1:01 AM
Hi,
Now My Platform setup is as following,
custom board
touchgfx 4.10.0
IAR 8
I'm trying to use snapshot widget in my project. I did the following configuration,
- In setFramebufferAddress function, set Animation storage to true.
- create a snapshot widget object
- set the object position by setPosition() function, and Add the object to the screen.
- in a proper position, makeSnapshot to animation storage.
Now, these setup works fine in simulator. But when I tested it on my custom board with IAR, snapshot was occurred indeed, because 'fbCopy' variable got correct address, but the content of the memory is wrong, did anyone meet the same situation before and help to fix it?
Best Regards!
Thanks.
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-08-05 6:28 AM
Hi @L4Y,
Back from vacation. Can you tell us more about what the contents actually are and why you think they're wrong? :) Thanks!
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-08-05 6:19 PM
Hi Martin,
Firstly, thank you for the response.
About the snapshot contents, I set the background of the screen to white, and set the snapshot size to 20*20 pixels by the function setPosition(0, 0, 20, 20). I made a snapshot just before making a transition to another screen. When I ran the test in simulator, I stopped right after snapshot executed, and the content of fbcopy in snapshot structure is correct, that's 0xFF. But when I ran the test on the custom board with IAR, the content is not 0xFF, it's something i cannot recognize.
And when I ran the test on the custom board with IAR, i do enlarge the framebuffer size to two times of the original size to save the snapshot.
Best Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-08-08 7:57 AM
Hi @L4Y,
In the past we've used the snapshot widget to do full screen snaps. I'll try to investigate if there are issues with placing the snapshot widget anywhere on the screen with an arbitrary size.
/Martin
