CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 1999
    Location
    United Kingdom
    Posts
    136

    How do I plot OpenGL into bitmap? PLEASE!

    I'm ripping my hair out, but I don't seem to be able to plot my OpenGL graph into a bitmap. I'm trying to copy my graph into the clipboard. To get a better resolution, I create a 640x480 bitmap and try to divert OpenGL's plotting into the bitmap, but fail miserably. I know how to plot OpenGL into my CStatic-derived class and rotate it and everything, but plotting it somewhere else fails. A simple BitBlt from the screen into the bitmap and then into the clipboard works fine, but unfortunately what I plot onto the screen is too small.

    Can anybody help me, please? I'm desparate.

    Oliver.


  2. #2
    Join Date
    May 1999
    Location
    Paris France
    Posts
    30

    Re: How do I plot OpenGL into bitmap? PLEASE!

    Check out GLBMP.exe example on the Microsoft site.
    SoftLib/MSLFILES/GLBMP.EXE
    You get an autoextractible file with an SDK project (in C) that demonstrate how to :
    setup material properties in OpenGL
    draw an OpenGL image into a bitmap
    print an OpenGL image

    Regards.


  3. #3
    Join Date
    May 1999
    Location
    United Kingdom
    Posts
    136

    Re: How do I plot OpenGL into bitmap? PLEASE!

    Thank you. I'll have a look into it.

    Ta muchly,
    Oliver.%

  4. #4
    Join Date
    May 1999
    Location
    United Kingdom
    Posts
    136

    Re: How do I plot OpenGL into bitmap? PLEASE!

    What is the complete URL of the example, please? I could

  5. #5
    Join Date
    May 1999
    Posts
    40

    Re: How do I plot OpenGL into bitmap? PLEASE!

    Also you should look at one of the posts in OpenGL section of CodeGuru:

    http://codeguru.com/opengl/printpreview.shtml

    This examples show drawing OpenGL into a DIB and then blitting DIB to a printer device context.

    Josh



  6. #6
    Join Date
    May 1999
    Location
    Paris France
    Posts
    30

    Re: How do I plot OpenGL into bitmap? PLEASE!


    In Microsoft Developer Network a search on GLBMP gives following URL
    ftp://ftp.microsoft.com/SoftLib/MSLFILES/GLBMP.EXE
    with a 33145 bytes file. The directory listing of SoftLib/MSLFILES is about 213783 bytes long.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured