Hello,
I am showing an image on the screen and then scale it to fit right. I am then capturing the image and saving it to file. On the next screen I show the image again but it is larger in size slightly. When I save the image I am displaying the contentWidth and height which are right. After the image is saved I look in my sandbox files and the image is larger than the contentWidth and height. Has anyone seen this before? Here is how I capture the image:
local myCaptureImage = display.captureBounds( imgHead.contentBounds ) myCaptureImage.x = Left7 + 10 myCaptureImage.y = 150 local random = math.random local R2 = math.random( 1000, 9999 ) local File2 = "pic" .. os.time() .. R2 .. ".jpg" local baseDir = system.TemporaryDirectory display.save( myCaptureImage, File2, baseDir ) myCaptureImage:removeSelf()
Thanks,
Warren