mmiscool
Full Member
Send me a message if you want to help with a WEB OS project
Posts: 106
|
Post by mmiscool on Sept 20, 2010 20:43:20 GMT -5
I am trying to save a graphic that i have drawn with rb to a path on the disk.
Is it possible to save or export a graphic similar to the way in lb?
the lb way is print #handle, "getbmp bmpName x y width height" This command will make a bitmap copied from the graphics window at x, y and using width and height. It resides in memory. This bitmap can be drawn using the DRAWBMP command, just as a bitmap loaded with LOADBMP. It is also possible to get a Windows handle to this bitmap with the HBMP() function.
|
|
|
Post by StefanPendl on Sept 21, 2010 2:05:39 GMT -5
In the public\images sub-folder of your RB installation are the displayed images stored.
Currently there is no SAVEBMP or similar command available, there are only LOADIMAGE and LOADGRAPHICS.
|
|
mmiscool
Full Member
Send me a message if you want to help with a WEB OS project
Posts: 106
|
Post by mmiscool on Sept 21, 2010 20:32:52 GMT -5
I have circumvented the problem by making a lb program that can be run from the shell command.
Since liberty basic graphic drawing commands are all strings printed to the graphics object all it had to do was read in the graphics command file, run the graphics instructions and save to the bmp name listed a the last line in the graphics script file.
I can post code if any one wants it.
-Mike
|
|
|
Post by Gordon on Jul 3, 2018 8:14:08 GMT -5
I have circumvented the problem by making a lb program that can be run from the shell command. Since liberty basic graphic drawing commands are all strings printed to the graphics object all it had to do was read in the graphics command file, run the graphics instructions and save to the bmp name listed a the last line in the graphics script file. I can post code if any one wants it. -Mike I'm interested Gordon
|
|