I am trying to fill a circle object by an image,
local circleObj = display.newCircle(x, y, w) circleObj.fill = { type="image", filename=params.filename, baseDir = params.baseDirectory }
Please take a look at the attached screenshot, you can see there are circles but the images inside them are skewed.
My questions are:
(1) Is there requirement for the image size? For example, if the circle has a radius 100, does the image need to have width/height = 100?
(2) What if the image width/height is larger/smaller than 100?
(3) Can I control the filled image size by code?
(4) My images are downloaded from the Internet, the size is unknown. Does it mean it cannot be used here?
(5) Why the images are skewed (as the screenshot shows) ?
Thanks.