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.
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++.
|
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 | |
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)
dev_set_part always returns 2 (H_MSG_TRUE)
dev_set_part is local and processed completely exclusively without parallelization.
Foundation