Hello again,
I am able to get a screenshot of the download image with the code below, but this is not a viable solution. My app is landscape, and the wallpapers are in portrait. So, the image gets squished, and can’t even be used as a wallpaper once it is saved.
I would really appreciate any help. Even if it is just to tell me that I should stop trying and just wait until this functionality is available.
Regards,
Brian
[code]
local function networkListener( event )
if ( event.isError ) then
print ( “Network error - download failed” )
else
local img = display.newImageRect(“wallpaper_tmp.png”, system.TemporaryDirectory, display.contentWidth, display.contentHeight + IpadOffset)
img:setReferencePoint(display.TopLeftReferencePoint)
img.x, img.y = 0,0
–grab the screen, save it to the album, then remove the screen capture and the original image.
local screenCap = display.captureScreen( true )
screenCap:removeSelf()
img:removeSelf()
end
–print ( "RESPONSE: " … event.response )
end
–event.target.id is taken from other code (not shown here)
–Also, xxxxxxxx.php is not the actual web service name.
network.download(
“http://velluminteractive.com/xxxxxxxx.php?x=” … event.target.id,
“GET”,
networkListener,
“wallpaper_tmp.png”,
system.TemporaryDirectory )
[/code] [import]uid: 158289 topic_id: 28220 reply_id: 114099[/import]