Replacing image of dynamic texture doesn't work

Given is a box with a dynamic texture consisting of a loaded image (grass.png).

When clicking on the box, the DynamicTexture already used should be used to save resources and another image (amiga.png) should be drawn.

The background is, I’m working on a slide for a SingleChoice, where the other RadioButtons should be reset as soon as a new selection is made.

However, the area is not completely filled after the mouse click. Why?

I have extracted the main problem from my source code:

I’d be very happy for a clue.

Something like that?

1 Like

This is what I was looking for:

No strechings, pix centered.