View Full Version : Converter from OpenGL metafile to GDI metafile
04-25-2001, 05:59 AM
Does anybody know where it is possible found converter form OpenGL metafiles to GDI metafiles or at least program allow to see OpenGL metafiles and print it? http://www.opengl.org/discussion_boards/ubb/confused.gif
Thanx for any help
04-25-2001, 10:24 PM
There are no OpenGL metafiles. To print an OpenGL view, you have to create a bitmap in memory, render to it and print it. Be careful not to render as big as the printer resolution (e.g. 600dpi would be 6000 x 4000 pixels!), but to render smaller and scale it. Not every printer can handle every scale operation, so you have to ask for the raster capabilites of your printer too ;-)
04-25-2001, 11:59 PM
What does you mean about OpenGL metafiles? I can create and save OpenGL metafiles and i can print it if printer support it. But i need to export it in some programs like Word and Power Point.
04-26-2001, 03:13 AM
Never heard of an OpenGL metafile before. How do you create it?
04-26-2001, 04:10 AM
Its creating like a GDI metafiles. Make the handle to metafile current HDC and then Initializing OpenGL into it and then use into it usual OpenGL comands like glVertex and etc. You will have a usual file *.wmf with list OpenGL commands in it. But where one problem its not supported mostly popular program http://www.opengl.org/discussion_boards/ubb/frown.gif
04-26-2001, 04:24 AM
I think you should render to a bitmap, and write it. This could be imported by other programs. You loose the vector format in that way, but it seems the only possibility to me.
04-26-2001, 04:35 AM
I already render into bitmap but i need vector file to allow scale in 3 and more times without any visible lose quality and also i need allow print vector files in plotter...
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.