I tried to set the frame height to the entire image height, which means that there are 27 extra (empty) pixels on both sides top and bottom. Still the same artefacts. Therefore, I don’t think it has to do with a lack of extra pixels. Also, I’m thinking that if it really was the height of the frames that caused the problems, then the positioning of the image would not matter, right?
ALTERNATIVE 1.
When I display the image as it is:
local image = display.newImageRect("audiosliderimagesheet.png", 170, 70) image.x = 300 image.y = 140
there are never any problems with artefacts, regardless of the position of the image.
ALTERNATIVE 2:
When I display it as individual images from the sheet:
local frame1 = display.newImage( sliderSheet, 1 ) frame1.x = 100 frame1.y = 500 local frame2 = display.newImage( sliderSheet, 2 ) frame2.x = 150 frame2.y = 500 local frame3 = display.newImage( sliderSheet, 3 ) frame3.x = 200 frame3.y = 500 local frame4 = display.newImage( sliderSheet, 4 ) frame4.x = 250 frame4.y = 500 local frame5 = display.newImage( sliderSheet, 5 ) frame5.x = 300 frame5.y = 500
there are also no problems with artefacts.
In other words, it is not the image or the image sheet definition itself that is causing it, but something when it is used in the slider widget.