Board index » delphi » Rendering OpenGL to a bitmap
Cleverley Graham
![]() Delphi Developer |
Sat, 05 Feb 2005 17:23:08 GMT
Rendering OpenGL to a bitmap
I'm working on converting an SVG file to an OpenGL rendering, which is
working fine on screen so far. However I also need to be able to print it and OpenGL won't directly render to the printer. As a precursor to printing therefore, I am rendering it to a bitmap first, The initial compile is done unscaled, with the picture clipped to whatever Rendering to the screen works fine, either original size or rescaled Rendering to the bitmap, suitably scaled by printer resolution/screen The first time I do it, and only the first time, the image is always 1" The code that is executed the first time is exactly the same as the code Does anyone have any idea why this might be happening? |