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

Modify the displayed image part.

dev_set_part modifies the image part that is displayed in the graphics window. (Row1,Column1) denotes the upper left corner and (Row2,Column2) the lower right corner of the image part to display.

If Row1 is larger than Row2 the zooming will be reset. That means that the last displayed image will be completetly visible. Please note that this is not possible with the operator set_part outside HDevelop.


Attention

If dev_set_part should be used for exported Code (C++), please note the description of set_part due to the different semantics in C++.


Parameters

Row1 (input_control)
rectangle.origin.y -> integer
Row of the upper left corner of the chosen image part.
Default value: 0

Column1 (input_control)
rectangle.origin.x -> integer
Column of the upper left corner of the chosen image part.
Default value: 0

Row2 (input_control)
rectangle.corner.y -> integer
Row of the lower right corner of the chosen image part.
Default value: 128

Column2 (input_control)
rectangle.corner.x -> integer
Column of the lower right corner of the chosen image part.
Default value: 128


Example
read_image (Image, 'fabrik')
for i := 1 to 240 by 10
  dev_set_part (i, i, 511-i, 511-i)
  dev_display (Image)
endfor
dev_set_part (1, 1, -1, -1)
dev_display (Image)

Result

dev_set_part always returns 2 (H_MSG_TRUE)


Parallelization Information

dev_set_part is local and processed completely exclusively without parallelization.


Possible Successors

dev_display


See also

set_part


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH