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.
Printable View
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.
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.
But, Is it posible to print it directly?
If you can get an hDC I believe you can pass it to the Printer object.
Yep. As long as you can get a DC, you can print from that.
Z.
Do u want to take a screen shot and save it to a file ?
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 ;)