drag_region3π
Short descriptionπ
drag_region3 β Interactive movement of a region with restriction of positions.
Warningπ
This operator does not work in an HDevelop graphics window opened with
dev_open_window.
Signatureπ
drag_region3( region SourceRegion, region MaskRegion, out region DestinationRegion, window WindowHandle, point.y Row, point.x Column )
Descriptionπ
You use drag_region3 to move a region on the display by mouse.
It corresponds to the operator drag_region2 with the
enhancement, that all points are specified which can be entered by mouse.
If you move the mouse outside of this area (MaskRegion), the
region on the point with the smallest distance inside MaskRegion
will be displayed.
Attentionπ
The regionβs gray values 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.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parametersπ
SourceRegion (input_object) region-array β object
Regions to move.
MaskRegion (input_object) region-array β object
Points on which it is allowed for a region to move.
DestinationRegion (output_object) region-array β object
Moved regions.
WindowHandle (input_control) window β (handle)
Window handle.
Row (input_control) point.y β (integer)
Row index of the reference point.
Default: 100
Suggested values: 0, 64, 128, 256, 512
Value range: 0 β€ Row β€ 1024
Column (input_control) point.x β (integer)
Column index of the reference point.
Default: 100
Suggested values: 0, 64, 128, 256, 512
Value range: 0 β€ Column β€ 1024
Resultπ
drag_region3 returns 2 (H_MSG_TRUE) if a region is entered and if the window
is valid.
If necessary, an exception is raised.
You may determine the behavior after an empty input with
set_system(::'no_object_result',<Result>:).
Combinations with other operatorsπ
Combinations
Possible predecessors
Possible successors
reduce_domain, disp_region, set_colored, set_line_width, set_draw, affine_trans_image
Alternatives
get_mposition, move_region, drag_region1, drag_region2
See also
Moduleπ
Foundation