Printing surfaces

Hello. Sorry if this questing may seem a bit simple, but I haven’t
really played around with SDL much.

I’m planning a small project, and I’m wondering if SDL is the way to go.
What I would need to do is simply to create a surface, and then create
several other surfaces on top of those (using text rendered from SDL_ttf
probably), and maybe use SDL_gfx to rotate those surfaces. 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). The output needs to be of
good quality, however, as this program will be used for layouting
posters for print.

Thanks.

P.S.: Please CC me on replies, as I’m not subscribed to this mailing
list.–
David S. Geirsson
@David_S_Geirsson
+31 642561928 (0642561928)

> 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).

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!On Mon, Sep 29, 2003 at 03:14:31PM +0200, David S. Geirsson wrote:


bill at newbreedsoftware.com Got kids? Get Tux Paint!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/tuxpaint/