Hi there!
I use display.save() trying to save an image that i want to use later.
My problem is this: When I save the image, this one is what i see instead of watching the elements I’ve got before pressing the save button, i.e., I want to save the image but not to watch the result (image.jpg) in my iPhone screen.
Is it possible?, what am I doing wrong?
This is my code:
display.setStatusBar( display.HiddenStatusBar )
local ui=require("ui")
local width,height=display.contentWidth,display.contentHeight
local background=display.newImage("background.jpg")
local rect=display.newRect(0,(height-80),width,height)
rect:setFillColor(174,78,0)
local my\_image=display.newImage("foo.png",90,90)
local function saving()
local baseDir = system.DocumentsDirectory
local toSave=display.newGroup()
toSave:insert(background)
toSave:insert(my\_image)
display.save(toSave,"image.jpg",baseDir)
end
local save\_button = ui.newButton{
default = "save\_button.png",
over = "save\_button.png",
onRelease = saving,
emboss = true
}
save\_button.x=width/2
save\_button.y=height-35
TIA [import]uid: 44013 topic_id: 9718 reply_id: 309718[/import]