New topic: Wrong contents of a Picture
<http://forums.realsoftware.com/viewtopic.php?t=24152> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message robertom Post subject: Wrong contents of a PicturePosted: Mon Sep 01, 2008 10:17 am Joined: Wed May 31, 2006 11:50 am Posts: 19 Location: Torino, Italy I have saved with the application to wich I'm working a picture (Picture1) in the same folder of the application with the following code: Dim f, temp as FolderItem temp = temporaryFolder.Child("Picture1") temp.SaveAsPicture PictM f = GetFolderItem("Picture1") temp.CopyFileTo f If I download later the same picture with the code: Dim f as FolderItem f = GetFolderItem("Picture1") PictM = f.OpenAsPicture and I show the picture on the Canvas with: g.DrawPicture PictM, 0, 0 I get a picture exactely same as the original, but if I try to work with it I get a NilObject error. I have seen, when debuggig, that the downloaded picture properties have some wrong contents as for instance: Graphics: Nil instead of Graphics RGBSurface: Nil instead of RGBSurface I dont know where my error is. Could anyone help me? Thanks. Roberto Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 900 classes with 18000 functions in one REALbasic plug-in. The Monkeybread Software Realbasic Plugin v8.1. <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml> [email protected]
