[Lazarus] Get TOpenGLControl as Bitmap

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Oct 15 12:30:05 CEST 2015


On Thu, 15 Oct 2015 02:59:10 -0700
Aradeonas <aradeonas at operamail.com> wrote:

>[...]
> This question is probably for Mattias. Is there any way to get what I
> draw on TOpenGLControl as a bitmap result like an screenshot from this
> component? I want it to make a blur effected of it and then paint it
> again on the control so I get a blurred view of whatever is in control.

Taking a bitmap shot was answered by Aradeonas.
But you cannot simply paint onto an opengl control. You need
OpenGL for that. It would be much faster to do the blur entirely with
OpenGL.

Mattias





More information about the Lazarus mailing list