On May 26, 2007, at 8:11 AM, Himadri Sarkar wrote: > I have a queue of images in an array like uint8_t **buf, and i want to > display these images sequentially in a box in fltk, i am not able > to figure > out how to do that, > > The actual problem is that i want to decode mpeg video, perform some > transformation on the decoded image and then disply that image in a > box, and > in the process i dont want to write the transformed image or > decoded image > in my harddisk
You must derive your own widget class form Fl_Box or any other low level widget. Then override the "draw()" function and call "fl_draw_image()" whenever your "draw()" function is called from FLTK. Since you are planning to decode a sequence, you may also want to start a timer with "fl_add_timer" which increments your frame number and call "redraw()" on your widget. Then as soon as "draw()" is called, you cal "fl_draw_image()" with your new decoded image. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

