drag_region2 — 具有定点规范的区域的交互式移动。
This operator does not work in an HDevelop graphics window opened with
dev_open_window.
drag_region2(SourceRegion : DestinationRegion : WindowHandle, Row, Column : )
You use drag_region2 to move a region on the display by mouse.
It corresponds to the operator drag_region1 with the
difference, that the position of the mouse cursor can be determined.
Gray values of the regions are not moved. With moving the input region it is not sure whether the gray values of the output regions are filled reasonable. This may occur if the gray values of the input regions do not comprise the whole image.
SourceRegion (输入对象) region-array → object
Regions to move.
DestinationRegion (输出对象) region-array → object
Moved regions.
WindowHandle (输入控制) window → (handle)
窗口句柄。
Row (输入控制) point.y → (integer)
Row index of the reference point.
默认值: 100
建议值: 0, 64, 128, 256, 512
值范围:
0
≤
Row
≤
1024
Column (输入控制) point.x → (integer)
Column index of the reference point.
默认值: 100
建议值: 0, 64, 128, 256, 512
值范围:
0
≤
Column
≤
1024
drag_region2 returns 2 (
H_MSG_TRUE)
, if a region is entered, the window
is valid and the needed drawing mode (see set_insert)
is available。如有必要,则抛出异常。
You may determine the behavior after an empty input with
set_system(::'no_object_result',<Result>:)。
reduce_domain,
disp_region,
set_colored,
set_line_width,
set_draw,
set_insert,
affine_trans_image
get_mposition,
move_region,
drag_region1,
drag_region3
set_insert,
set_draw,
affine_trans_image
基础