Thanks Brent. Actually no. The image only looks fine if I don’t use a sprite sheet file at all. For example, suppose I have 3 files (“background.png”, “logo.png”, “button.png”), then I use TP to generate a sprite sheet (“startScreenSheet.png”) containing these 3 images, ok? If I use like the code below, for example, it works perfectly:
local img = display.newImageRect("background.png", 380 , 570 )
However, if I use like the code below:
local startSheetInfo = require('startScreenSheet') local startSheet = graphics.newImageSheet("startScreenSheet.png", startSheetInfo:getSheet() ) local frame = startSheetInfo:getFrameIndex("background") local img = display.newImageRect( startSheet, frame, startSheetInfo:getSheet().frames[frame].wi dth, startSheetInfo:getSheet().frames[frame].height )
the image loses quality, the edges are blurry, looks like a slightly streched image. Obviously, the first reason that come to mind is that TP somehow decreases the image quality, but if I open the sprite sheet file on my desktop, the image looks perfect.
Is it more clear now?