Answered by:
Saving Graphics Window to Image file?

Question
-
Is there any way in Small Basic to save a graphics window as an image file for access in another image editor? I have tried to install Fremy's extensions with no success. I'm using Small Basic 0.9, with Windows 7, 64 bit.Friday, August 6, 2010 6:09 PM
Answers
-
SmallBasicBeginner,
Knowing that you have FC.dll and FC.xml loaded. If you have a clear graphics window just like you were starting to write a program and type in f, right below that do you FCClipBoard shown in the intellisense? If you do the extension is there.
Jricestk
- Marked as answer by litdev Sunday, August 22, 2010 9:15 PM
Saturday, August 7, 2010 12:50 AMAnswerer
All replies
-
SmallBasicBeginner,
The only way that I know of is using Fremy's extension. It does have the capability of saving a graphics image file. That extension should work with windows 7. Any idea as to why you can't get it to run? When it is loaded correctly you should have 2 files in the "Lib" folder. They are FC.dll and FC.xml. Hope that helps.
Jricestk
Friday, August 6, 2010 6:22 PMAnswerer -
Unfortunately, Small basic in and of itself does not have a function to save graphics to disk at the moment. Installing an extension as of right now is the only way for smallbasic to save graphics to a file. Fremy's extension would be useful, but I think its only compatible with SB ver 0.8 (someone correct me if there is an updated version out there. I'd certainly like to have an updated copy! :D).
If you really wanted to go old school, you could create a bitmap of the graphics on screen, UUEncode the bitmap, save that to file, then use another program to transform that into your graphics file. You can find out more about UUencoding at http://en.wikipedia.org/wiki/Uuencoding. Its certainly not the fastest method, but it would definitely build your programming muscles. ;)
Friday, August 6, 2010 6:44 PM -
Thanks for the quick response. I have no idea why the extensions don't work. I tried Small Basic 0.8 on a machine running XP, with .net 3.5 SP1, and still nothing. Both files you mentioned are in a folder "lib" which I created in the small basic installation folder, that is, the same folder with the smallbasic.exe file. I am attempting to create a large star map with data from a .csv file. I can get the GraphicsWindows generated just fine, but it needs to be so large because of the resolution needed, the only way I can do it is to take MANY screenshots and assemble the pieces later in Photoshop! What a chore!
Friday, August 6, 2010 9:34 PM -
WriterCoder,
I have it working with with SB 0.9. Try this link. I think it is the one I used to load it into SB 0.9.
http://cid-201f3835d49587fe.office.live.com/self.aspx/Public/Small%20Basic/lib.zip
Jricestk
Saturday, August 7, 2010 12:46 AMAnswerer -
SmallBasicBeginner,
Knowing that you have FC.dll and FC.xml loaded. If you have a clear graphics window just like you were starting to write a program and type in f, right below that do you FCClipBoard shown in the intellisense? If you do the extension is there.
Jricestk
- Marked as answer by litdev Sunday, August 22, 2010 9:15 PM
Saturday, August 7, 2010 12:50 AMAnswerer -
Thanks, Jricestk, I'll give it a go! :D
- Proposed as answer by martmen Saturday, August 7, 2010 7:41 AM
Saturday, August 7, 2010 4:26 AM