GLScene - unable to take screenshots.
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Description:
I downloaded the latest SVN of Lazarus (22696), and the latest GLScene. However, I have found similar problems on OSX. Several methods for taking screen shots with GLScene are described at
http://glscene.pbworks.com/Tips%20Snapshot
and
http://orion.lcg.ufrj.br/RPMS/myrpms/lazarus/lazarus-components/GLScene-0.9.1.4/Demos/rendering/tobitmap/Unit1.pas
these work well with Delphi, and used to work with Lazarus. However, the latest versions do not seem to work, either generating blank images or causing access violations... Here are some of the rountines I have tried. I had the same experience with my projects and the sample projects that come with GLScene...
GLSceneViewer1.Buffer.CreateSnapShotBitmap.SaveToClipboardFormat(2);
GLSceneViewer1.Buffer.RenderToFile
GLSceneViewer1.Buffer.RenderToBitmap
and converting a TGLBitmap32 to a TBitmap using
bm:=bmp32.Create32BitsBitmap;
all cause access violations.
Mantis conversion info: