[vtkusers] Getting the content of render window
Florian Schmidt
mista.tapas at gmx.net
Fri Jan 10 12:15:23 EST 2003
On Thu, 9 Jan 2003 15:36:38 -0800
"Shashidhar Kamath" <skamath at xradia.com> wrote:
> Hi
>
> Im using vtk and MFC combination. Im using vtkWin32OpenGLRenderWindow
> class for displaying the image. I write some annotations on top of the
> image using MFC. Finally i want to write the content of the render
> window as a BMP or JPG. If i use vtkWindowToImageFilter i dont get the
> things that i write using MFC. Is there any function or trick that i
> can use here?? is there any way i can read the screen buffer??
>
> Any help is greately appreciated.
I'm not too firm witht his, but i suppose thers no way from within vtk
to access those annotations. What you will have to do (IMHO) is to get a
handle on the native win32-window and get the pixel info from there. But
if you use opengl, this might still not be enough, since i don'T know if
you can acccss the pixel value of a opengl window (and if you can, it
will probably be very slow (as compared to wrinting to a opengl
context))..
Disclaimer: i have never ever been programming mfc. and the last time i
used a win32 api call is 4 years ago, so take my answer with caution.
HTH
Florian Schmidt
--
mista.tapas at gmx.net
http://www.arted.biz/mista.tapas
More information about the vtkusers
mailing list