Joerg Desch wrote:
> I'm looking for a way to use FLTK for an DirectShow video display. I've found 
> a library which must be called from within an separate thread. This library 
> waits for a new video frame (inside the thread) and returns after a frame is 
> fetched. Now I have a RGB frame, but

You use fl_drawimage() to draw an image you have in memory. This is much 
easier than any other api. It is also faster than using the fltk Image 
object if your image is actually changing.

I am totally mystified as to why nobody seems aware of this function. 
Surely nobody thinks you draw a line when you have the x,y,x,y end 
points in memory by creating a Line object and then drawing it, but 
instead by calling drawline(x,y,x,y). But it appears exposure to other 
graphics api's has convinced everybody that it is impossible to draw an 
image without creating a special back-end-specific Image object, despite 
the obvious equivalent api.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to