set_part ( : : Row1, Column1, Row2, Column2 : )

Modifies the displayed image part.

set_part modifies the image part, that is displayed in the active window. (Row1,Column1) denotes the upper left corner and (Row2,Column2) the lower right corner of the image part to display. The changed values are used by greyvalue output operators (disp_image, disp_color) aswell as region output operators (disp_region)).

If only part of an image is displayed, it will be zoomed to ful window size. The zooming interpolation method can be set with set_part_style. get_part returns the current values of the image part to display.


Attention

After a call of set_part, some operators like draw_region, draw_ellipse, etc. can no longer be used.


Parameters

Row1 (input_control)
rectangle.origin.y -> integer
row of the upper left corner of the chosen image part.
Default value: 0
Range of values: 0 <= Row1 <= 1024
Restriction: Row1 >= 0

Column1 (input_control)
rectangle.origin.x -> integer
column of the upper left corner of the chosen image part.
Default value: 0
Range of values: 0 <= Column1 <= 1024
Restriction: Column1 >= 0

Row2 (input_control)
rectangle.corner.y -> integer
row of the lower right corner of the chosen image part.
Default value: 128
Range of values: 0 <= Row2 <= 1024
Restriction: Row2 >= Row1

Column2 (input_control)
rectangle.corner.x -> integer
column of the lower right corner of the chosen image part.
Default value: 128
Range of values: 0 <= Column2 <= 1024
Restriction: Column2 >= Column1


Example
get_system(::'width':,Width) >
get_system(::'height':,Height) >
set_part(0,0,Height-1,Width-1) >
disp_image(:Image::) >
draw_rectangle1(:::Row1,Column1,Row2,Column2) >
set_part(::Row1,Column1,Row2,Column2:) >
disp_image(:Image::).

Result

set_part returns TRUE, if a window is active. Otherwise an exception is raised.


Possible Predecessors

get_part


Possible Successors

set_part_style, disp_image, disp_region


Alternatives

image_transform__


See also

get_part, set_part_style, disp_region, disp_image, disp_color



Copyright © 1996-1997 MVTec Software GmbH