Re: XForms: VIDEO PROBLEM

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 24 Sep 98 12:51:28 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> i want to display the images captured from a real-time camera
> in an XForm window. how can i do that?
> [...]
> should i use a canvas? but i need to know the xdisplay, xwindow
> display depth attributes, how can i get these by XForm?

Yes, use a Canvas object.

You can get the Display with the function fl_get_display() or the
global symbol `fl_display'. You can get the depth of the Canvas with
the fl_get_canvas_depth() function. Colormap and other information
can also be requested. Please refer to your manual for exact details.

If you need further detail on the insides of the Window, you may need
to revert to Xlib calls. Fortunately, there aren't all that many you
need to fiddle with. XGetWindowAttributes() will probably provide you
with just about everything you need, including a pointer to the
Visual. Refer to your man pages or Xlib reference manual for the
mechanical details.

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/