I want to put a texture on the rectangle so that it doesn’t stretch. At the moment, it stretches along the edges of the rectangle. This does not happen when superimposed on a circle. Help me, how do I do this?
local projectIcon = display.newRoundedRect(_cx, y, _dw / 10, _dh / 10, 10)
projectIcon.fill = { type="image", filename="res/data/images/defaultIcon.png" }