Hello,
I am wanting to merge two images together because I am adding a watermark image to the first image. I do this by the code below and works fine. The problem is the image is larger than the screen. The documentation said the entire image must be on the screen. Mine was not and it was clipped when it was saved. Is there any possible way to do this?
Is the only way to do this is to scale the image to fit in the screen and then save it? I know how to use the scale method but I do not know how to make it just fit in the screen. Does anyone know how to use scale to have the image fit just inside the screen? I want to keep the aspect ratio of the image I am scaling.
Thanks!
x = display.newImage("woman.png")
y = display.newImage("box.png")
z = display.newGroup()
z:insert(x)
z:insert(y)
local baseDir = system.TemporaryDirectory
display.save(z,"newimage.jpg",baseDir)
[import]uid: 184193 topic_id: 35800 reply_id: 335800[/import]