Menu

#152 To BMP error

open
nobody
None
5
2010-09-02
2010-09-02
No

Demo tobitmap no longer rendes the bitmap when either
'Render To Bitmap', 'Bitmap x2', 'Bitmap 300 dpi' or 'Bitmap 600 dpi'
Buttons are used.
The error 'tobimap.exe has encountered a probem and needs to close.' etc.
is displayed.
Stop on Delphi Exceptions debug option is of no help.
No error message is displayed if
// GLSceneViewer1.Buffer.RenderToBitmap(bmp, Round(96*scale));
is commented out. And of course no bitmap is produced.
Eric Hardinge

Discussion

  • YarUnderoaker

    YarUnderoaker - 2010-09-03

    Yes, I know. That's my mistake, I thought that wgl functions do not depend on the context, but it is not. I will correct it soon.
    I also wonder why people use this feature, because there only software rendering.

     
  • Eric Hardinge

    Eric Hardinge - 2010-09-03

    Thank you for your rapid response. I constantly wonder when you find time to sleep.
    Your comment regarding its use leads me to ask you what would you recommend as an alternative?

     
  • YarUnderoaker

    YarUnderoaker - 2010-09-04

    Use TGLMemoryViever - it faster and have fully OpenGL. Or TGLFBORenderer

    I've got time to sleep, and time to engine found on main work and a couple of hours in the evening. I also wonder where Grange found time :)

     
  • Eric Hardinge

    Eric Hardinge - 2010-09-07

    Thank you for your advice. I have been off line for the past few days as a strong wind storm had cut power to my computer; no electricity , water or phone.