PDA

View Full Version : How to print



01-26-2003, 12:01 PM
I'm working with VB 6.0, developing an Acad simil application.

There is any way to redirect ogl output to the printer device, using the full printer resolution ??


[excuse my grammar mistakes]

mikael_aronsson
01-27-2003, 04:00 AM
Hi !

Yes, you can do it two ways, you can render to an off screen bitmap and then print it (I think there is good example at www.codeguru.com (http://www.codeguru.com) in the OpenGL section, even though it's C++ code it shoulöd be pretty easy to get the idea).

Another way is to use feedback to output postscript, there is a library for this, but I do not rember the URL, and if your printer don't support PS it's a bit tricky.

Mikael

01-29-2003, 12:59 PM
thx Mikael

I'll try the way of the Feedback.

I've found 2 pages in this way: www.codeproject.com/opengl/glprint.asp (http://www.codeproject.com/opengl/glprint.asp) www.codeproject.com/useritems/glexport.asp (http://www.codeproject.com/useritems/glexport.asp)

I think postscript always gets better resolution than making a dump of a bitmap.