drag_region2T_drag_region2DragRegion2DragRegion2drag_region2 (算子名称)

名称

drag_region2T_drag_region2DragRegion2DragRegion2drag_region2 — Interactive movement of a region with fixpoint specification.

警告

This operator does not work in an HDevelop graphics window opened with dev_open_window.

参数签名

drag_region2(SourceRegion : DestinationRegion : WindowHandle, Row, Column : )

Herror T_drag_region2(const Hobject SourceRegion, Hobject* DestinationRegion, const Htuple WindowHandle, const Htuple Row, const Htuple Column)

void DragRegion2(const HObject& SourceRegion, HObject* DestinationRegion, const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)

HRegion HRegion::DragRegion2(const HWindow& WindowHandle, Hlong Row, Hlong Column) const

HRegion HWindow::DragRegion2(const HRegion& SourceRegion, Hlong Row, Hlong Column) const

static void HOperatorSet.DragRegion2(HObject sourceRegion, out HObject destinationRegion, HTuple windowHandle, HTuple row, HTuple column)

HRegion HRegion.DragRegion2(HWindow windowHandle, int row, int column)

HRegion HWindow.DragRegion2(HRegion sourceRegion, int row, int column)

def drag_region2(source_region: HObject, window_handle: HHandle, row: int, column: int) -> HObject

描述

You use drag_region2drag_region2DragRegion2DragRegion2DragRegion2drag_region2 to move a region on the display by mouse. It corresponds to 该算子 drag_region1drag_region1DragRegion1DragRegion1DragRegion1drag_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.

运行信息

参数表

SourceRegionSourceRegionSourceRegionSourceRegionsourceRegionsource_region (input_object)  region-array objectHRegionHObjectHRegionHobject

Regions to move.

DestinationRegionDestinationRegionDestinationRegionDestinationRegiondestinationRegiondestination_region (output_object)  region-array objectHRegionHObjectHRegionHobject *

Moved regions.

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

RowRowRowRowrowrow (input_control)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row index of the reference point.

Default: 100

Suggested values: 0, 64, 128, 256, 512

Value range: 0 ≤ Row Row Row Row row row ≤ 1024

ColumnColumnColumnColumncolumncolumn (input_control)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of the reference point.

Default: 100

Suggested values: 0, 64, 128, 256, 512

Value range: 0 ≤ Column Column Column Column column column ≤ 1024

结果

drag_region2drag_region2DragRegion2DragRegion2DragRegion2drag_region2 returns 2 ( H_MSG_TRUE) , if a region is entered, 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

可能的后置算子

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_region3drag_region3DragRegion3DragRegion3DragRegion3drag_region3

参考其它

set_insertset_insertSetInsertSetInsertSetInsertset_insert, set_drawset_drawSetDrawSetDrawSetDrawset_draw, affine_trans_imageaffine_trans_imageAffineTransImageAffineTransImageAffineTransImageaffine_trans_image

模块

Foundation