Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

<image> bug

index.gui:

<svg>
  <image class="ramp" x="1" y="196" width="55" height="8" href="triangle.png" fill="white" load="sync" />
  <image class="ramp" x="101" y="196" width="55" height="7" href="triangle.png" fill="white" load="sync" />
</svg>

Given a triangle.png of 348x250, both images are drawn on the simulator (Versa and Ionic). However, the second image is not drawn on a real Ionic. The critical factor is the height: above 7, the image is displayed correctly; at or below 7, nothing.

 

Same problem if using a .TXI.

 

It would be rather good if the physical devices behaved correctly in this regard, like the simulator.

 

I can provide a minimal but complete project to demonstrate this behaviour.

Peter McLennan
Gondwana Software
Best Answer
0 Votes
2 REPLIES 2

Resizing images at runtime is a bit problematic on such a low powered device. It's probably best to use the correct image sizes.

Best Answer
0 Votes

Thanks for the reply Jon, but I need some display graphics to be dynamic because they depend on exercise targets and achievement. Strangely, some images work fine and others don't (all else being equal). I'm not yet sure what the critical factor is.

Peter McLennan
Gondwana Software
Best Answer
0 Votes