[SDL] Printing surfaces...
Bill Kendrick
nbs at sonic.net
Wed Oct 1 00:57:01 PDT 2003
On Mon, Sep 29, 2003 at 03:14:31PM +0200, David S. Geirsson wrote:
<snip>
> The main part is that I need to be able to print the result out after
> it's finished.
> I'm wondering if there's some simple way to do this (it can also just be
> to save the result to an image, for example).
<snip>
Tux Paint has print capabilities under Linux/Unix, Windows, Mac OS X and
BeOS. The code is platform-dependend, however.
Under Linux/Unix, I take advantage of the NetPBM tools to convert a PNG
(spat out via libPNG) into a PS, and then pipe that to 'lpr'. Pretty simple.
Under Windows, Mac OS X and BeOS, there's actual printing code.
Check the source! :^)
http://newbreedsoftware.com/tuxpaint/download/source/
Note: Apparently, at the moment, there's been some random reports of
blank pages printing under Windows98. *sigh* Stupid OS. >:^(
-bill!
--
bill at newbreedsoftware.com Got kids? Get Tux Paint!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/tuxpaint/
More information about the SDL
mailing list