set_icon ( Icon : : : )

Icon definition for region output.

set_icon defines an icon for region output (disp_region). It is displayed in the regions center of gravity. The use of this icon is activated with set_shape.


Parameters

Icon (input_object)
region -> object
icon for center of gravity.


Example
/* draw a region and an icon */
draw_region(&Region) ;
draw_region(&Icon) ;
set_icon(Icon) ;
set_shape("icon") ;
disp_region(Region) ;

Result

set_icon returns TRUE if exactly one region is passed. Otherwise an exception is raised.


Possible Predecessors

circle, ellipse, rectangle1, rectangle2, draw_region


Possible Successors

set_shape, disp_region



Copyright © 1996-1997 MVTec Software GmbH