Click to See Complete Forum and Search --> : Printing OpenGL
Roberto Mendoza
Aug 20th, 2001, 11:43 AM
Hello, I'm making an app that buids a 3D grafic using OpenGL, but now I want to print it. Anybody knows the way to do this?
I'm open to any suggestion.
Bye and Thanks.
Zaei
Aug 20th, 2001, 12:14 PM
I think the standard method is to lock the back buffer, and copy each pixel to a bitmap file, and save that file. I dont use OGL, so i cant give you any code, but that will work.
Z.
Roberto Mendoza
Aug 23rd, 2001, 05:42 AM
But, Is it posible to print it directly?
Sastraxi
Aug 23rd, 2001, 10:08 AM
If you can get an hDC I believe you can pass it to the Printer object.
Zaei
Aug 23rd, 2001, 12:14 PM
Yep. As long as you can get a DC, you can print from that.
Z.
PsyVision
Aug 26th, 2001, 04:46 AM
Do u want to take a screen shot and save it to a file ?
Jotaf98
Aug 27th, 2001, 12:21 PM
Showing the image and taking a screenshot is probably the best way of getting it to a DC. THEN you could print it :)
If you're interested just reply here and we'll give you some code ;)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.