drag_region3T_drag_region3DragRegion3DragRegion3drag_region3 (算子)
名称
drag_region3T_drag_region3DragRegion3DragRegion3drag_region3 — 具有位置限制的区域的交互式移动。
警告
This operator does not work in an HDevelop graphics window opened with
dev_open_window.
签名
void DragRegion3(const HObject& SourceRegion, const HObject& MaskRegion, HObject* DestinationRegion, const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)
HRegion HRegion::DragRegion3(const HRegion& MaskRegion, const HWindow& WindowHandle, Hlong Row, Hlong Column) const
HRegion HWindow::DragRegion3(const HRegion& SourceRegion, const HRegion& MaskRegion, Hlong Row, Hlong Column) const
static void HOperatorSet.DragRegion3(HObject sourceRegion, HObject maskRegion, out HObject destinationRegion, HTuple windowHandle, HTuple row, HTuple column)
HRegion HRegion.DragRegion3(HRegion maskRegion, HWindow windowHandle, int row, int column)
HRegion HWindow.DragRegion3(HRegion sourceRegion, HRegion maskRegion, int row, int column)
描述
You use drag_region3drag_region3DragRegion3DragRegion3DragRegion3drag_region3 to move a region on the display by mouse.
It corresponds to the operator drag_region2drag_region2DragRegion2DragRegion2DragRegion2drag_region2 with the
enhancement, that all points are specified which can be entered by mouse.
If you move the mouse outside of this area (MaskRegionMaskRegionMaskRegionMaskRegionmaskRegionmask_region), the
region on the point with the smallest distance inside MaskRegionMaskRegionMaskRegionMaskRegionmaskRegionmask_region
will be displayed.
注意
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.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
SourceRegionSourceRegionSourceRegionSourceRegionsourceRegionsource_region (输入对象) region-array → objectHRegionHObjectHRegionHobject
Regions to move.
MaskRegionMaskRegionMaskRegionMaskRegionmaskRegionmask_region (输入对象) region-array → objectHRegionHObjectHRegionHobject
Points on which it is allowed for a region to move.
DestinationRegionDestinationRegionDestinationRegionDestinationRegiondestinationRegiondestination_region (输出对象) region-array → objectHRegionHObjectHRegionHobject *
Moved regions.
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
RowRowRowRowrowrow (输入控制) point.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row index of the reference point.
默认值:
100
建议值:
0, 64, 128, 256, 512
值范围:
0
≤
Row
Row
Row
Row
row
row
≤
1024
ColumnColumnColumnColumncolumncolumn (输入控制) point.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column index of the reference point.
默认值:
100
建议值:
0, 64, 128, 256, 512
值范围:
0
≤
Column
Column
Column
Column
column
column
≤
1024
结果
drag_region3drag_region3DragRegion3DragRegion3DragRegion3drag_region3 returns 2 (
H_MSG_TRUE)
, if a region is entered, if the window
is valid and the needed drawing mode (see set_insertset_insertSetInsertSetInsertSetInsertset_insert)
is available。如有必要,则抛出异常。
You may determine the behavior after an empty input with
set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window,
get_mpositionget_mpositionGetMpositionGetMpositionGetMpositionget_mposition
可能的后继
reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain,
disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region,
set_coloredset_coloredSetColoredSetColoredSetColoredset_colored,
set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
set_insertset_insertSetInsertSetInsertSetInsertset_insert,
affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image
替代
get_mpositionget_mpositionGetMpositionGetMpositionGetMpositionget_mposition,
move_regionmove_regionMoveRegionMoveRegionMoveRegionmove_region,
drag_region1drag_region1DragRegion1DragRegion1DragRegion1drag_region1,
drag_region2drag_region2DragRegion2DragRegion2DragRegion2drag_region2
另见
set_insertset_insertSetInsertSetInsertSetInsertset_insert,
set_drawset_drawSetDrawSetDrawSetDrawset_draw,
affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image
模块
基础