How To Print OpenGL Images

Last reviewed: December 4, 1996
Article ID: Q160265
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) for Windows NT & Win95, version 4.00

SUMMARY

Prior to Microsoft Windows NT version 4.0, OpenGL applications that needed to print a rendered scene had to render their scene onto a DIB Section and then print that DIB section. With Windows NT 4.0, OpenGL applications can now render directly to a printer DC provided the printer is backed by a metafile spooler.

MORE INFORMATION

Under Windows 95, in order for OpenGL applications to print a rendered scene, they must follow the older method of rendering to a DIB Section, then print that DIB Section.

REFERENCES

For more information, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q149769.
   TITLE     : GLPRT: Sample App Demonstrates Printing in OpenGL

   ARTICLE-ID: Q136266.
   TITLE     : SAMPLE: Demonstration of OpenGL Material Property and
               Printing


KBCategory: kbprint kbhowto
KBSubcategory: GdiOpenGL
Additional reference words: 4.00 kbdsd



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 4, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.