next up previous contents index
Next: align Up: Reference Previous: make_fmovie   Contents   Index

view_demo

$ \bigcirc$Name


view_demo Demo of a user's lib call to the view modules: View images




$ \bigcirc$Command Synopsis


view_demo [-x pos_x] [-y pos_y] [-z zoom] cimage ccimage



-x pos_x : X coordinate for the upper-left corner of the Window

-y pos_y : Y coordinate for the upper-left corner of the Window

-z zoom : Zoom factor (float value)

cimage : Input cimage

ccimage : Input ccimage




$ \bigcirc$Function Summary


void view_demo (cimage , ccimage , x0 , y0 , zoom )

int *x0 , *y0 ;

float *zoom ;

Cimage cimage ;

Ccimage ccimage ;




$ \bigcirc$Description


This module shows how to call modules which open a window (here, cview and ccview) from another module (view_demo). Each main function of a module is put into the user's library. Make sure to call such function with the right parameters, cview and cciew in this example.

When calling several view modules, set the no_refresh flag in order to continue after the call (this is done by passing a non NULL adress to cview). The flag has to be unset only for the call to the last view module.

When you want to use the same window for different view modules (as it is the case here for the first two calls), call each view modules with the adress of the window (instead of a NULL adress). The window has to be opened using the function mw_get_window().




$ \bigcirc$See Also


ccview, cview.




$ \bigcirc$Version 1.1


Last Modification date : Thu Nov 29 20:23:56 2001


$ \bigcirc$Author


Jacques Froment






next up previous contents index
Next: align Up: Reference Previous: make_fmovie   Contents   Index
mw 2004-05-05