2024-12-17 10:19 PM
Hi there,
I am trying to use an SVG in my project, but the views between the TouchGFX and the simulator differ.
please refer to the project in the attachment.
My questions are on the page:
1. why the rect border seems normal in the TouchGFX Designer view, but abnormal in the simulator?
2. what's the mean of the different properties of svg1 and svg2?
Thanks for your help.
Solved! Go to Solution.
2024-12-19 04:44 AM
Hello @Junde ,
1. why the rect border seems normal in the TouchGFX Designer view, but abnormal in the simulator?
This is not supposed to happen.
We will investigate to fix it.
2. what's the mean of the different properties of svg1 and svg2?
We made a video about it .
"Fit to size" will resize the SVG to fit the size of the SVG widget. This allows you to quickly resize the SVG.
You can also make sure that the SVG image is centered in the SVG widget .
You can also set the rotation point (rotation center) and the rotation angle.
After investigating, we found that the issue happens when the display rotation is set to portrait.
We do not have a quick fix yet but note that it is only the stroke that is not visible, so if you put a background that is of a different color, you will see the shape correctly with the rounded corners.
Regards,
2024-12-19 04:44 AM
Hello @Junde ,
1. why the rect border seems normal in the TouchGFX Designer view, but abnormal in the simulator?
This is not supposed to happen.
We will investigate to fix it.
2. what's the mean of the different properties of svg1 and svg2?
We made a video about it .
"Fit to size" will resize the SVG to fit the size of the SVG widget. This allows you to quickly resize the SVG.
You can also make sure that the SVG image is centered in the SVG widget .
You can also set the rotation point (rotation center) and the rotation angle.
After investigating, we found that the issue happens when the display rotation is set to portrait.
We do not have a quick fix yet but note that it is only the stroke that is not visible, so if you put a background that is of a different color, you will see the shape correctly with the rounded corners.
Regards,
2024-12-19 06:24 PM - edited 2024-12-19 06:29 PM
Thanks for your so detailed reply.
After some tests, I find:
1. when I draw a horizontal input box with a border in SVG format, I can see all the borders when I rotate it 90 degrees;
2. when I draw a vertical input box with a border in SVG format, I can see all the borders without rotation. And abnormal when rotating it 90 degrees...
That's very strange to me because based on result 1, test 2 might be able to do what I want to do. hahaha...