New topic: Save as working document
<http://forums.realsoftware.com/viewtopic.php?t=3670> Page 1 of 1 [ 4 posts ] Previous topic | Next topic Author Message inthedark Post subject: Save as working documentPosted: Wed Mar 22, 2006 11:23 am Joined: Wed Mar 22, 2006 11:09 am Posts: 8 This application must be able to save graphic-oriented projects as something other than a picture, so that the user can resume working with graphics that were dragged into the main canvas, i.e. dragging to reposition them, deleting them, etc. What kind of file is this, and how is it created? Top Mike Bailey Post subject: Posted: Wed Mar 22, 2006 11:32 am Joined: Wed Sep 28, 2005 8:30 am Posts: 5396 Location: Austin, TX If you are using Vector graphics (see Object2D class) then you can use FolderItem.SaveAsPicture (with optional format parameter) and FolderItem.OpenAsVectorPicture. These two functions should allow you to save your vector image and open it with all the vector objects restored. Otherwise you are going to have to write some code to handle this yourself with an existing file format type or one of your own. If you were to write your own you could go the route of using a VirtualVolume to save all your images and then have a file that stores each image position, etc. Hope this helps. Top inthedark Post subject: Posted: Sat Jul 08, 2006 9:25 am Joined: Wed Mar 22, 2006 11:09 am Posts: 8 The Language Reference says that folderitem.saveaspicture won't work for VirtualVolumes, and I haven't been able to get saveasjpeg to work either. How does one save an image to a VirtualVolume? Top inthedark Post subject: Re: Save as working documentPosted: Sat Feb 14, 2009 12:26 am Joined: Wed Mar 22, 2006 11:09 am Posts: 8 I have been able to save all the data needed to open and work with the saved document in a virtual volume. I have created a file type "virtualvolume" and can save it and open it. Even though I have specified an icon in the filetypes window, and given "virtualvolume" a dot-three-letter extension of my own, neither show up on the saved file. Nor do I know which MacType or MacCreator code to give it. Any help? Mac OS 10.5.6 REALbasic 2008 5.1 Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 4 posts ] -- 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]
