I would like to take the displayed window bits and transfer this to another 
buffer in rgb format.  I take the rgb buffer and redraw it in an opengl or 
directx application: in this case opengl.  Basically, its an overlay-type 
function.

I subclassed DoubleBufferWindow and in my own draw function I call readimage(). 
 The bits do change as the window is moved but it doesn't look like the window 
when displayed.  I've tested the drawing code so I know it works for RGB data.  
The readimage() data format looks correct.

The code is pretty trivial but obviously flaw since it doesn't do what I want. 
:)

draw()
{
    DoubleBufferWindow::draw();
    fltk::Rectangle r(x(), y(), w(), h());
    fltk::readimage(imagePtr, fltk::RGB, r);
}

I'm using version 2.0 rev 5527.  Anyone have ideas as to why the image doesn't 
contain the correct contents?

Thanks,
Bruce


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to