ClassesClassesClassesClasses | | | | Operators

drag_region2drag_region2DragRegion2drag_region2DragRegion2DragRegion2 (Operator)

Name

drag_region2drag_region2DragRegion2drag_region2DragRegion2DragRegion2 — Interactive movement of a region with fixpoint specification.

Signature

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

Herror drag_region2(const Hobject SourceRegion, Hobject* DestinationRegion, const Hlong WindowHandle, const Hlong Row, const Hlong Column)

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

Herror drag_region2(Hobject SourceRegion, Hobject* DestinationRegion, const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)

HRegionArray HRegionArray::DragRegion2(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column) const

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

void HOperatorSetX.DragRegion2(
[in] IHUntypedObjectX* SourceRegion, [out] IHUntypedObjectX*DestinationRegion, [in] VARIANT WindowHandle, [in] VARIANT Row, [in] VARIANT Column)

IHRegionX* HRegionX.DragRegion2(
[in] IHWindowX* WindowHandle, [in] Hlong Row, [in] Hlong Column)

IHRegionX* HWindowX.DragRegion2(
[in] IHRegionX* SourceRegion, [in] Hlong Row, [in] Hlong Column)

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)

Description

You use drag_region2drag_region2DragRegion2drag_region2DragRegion2DragRegion2 to move a region on the display by mouse. It corresponds to the operator drag_region1drag_region1DragRegion1drag_region1DragRegion1DragRegion1 with the difference, that the position of the mouse cursor can be determined.

Attention

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.

Parallelization

Parameters

SourceRegionSourceRegionSourceRegionSourceRegionSourceRegionsourceRegion (input_object)  region-array objectHRegionHRegionHRegionArrayHRegionXHobject

Regions to move.

DestinationRegionDestinationRegionDestinationRegionDestinationRegionDestinationRegiondestinationRegion (output_object)  region-array objectHRegionHRegionHRegionArrayHRegionXHobject *

Moved regions.

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window handle.

RowRowRowRowRowrow (input_control)  point.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row index of the reference point.

Default value: 100

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

Typical range of values: 0 ≤ Row Row Row Row Row row ≤ 1024

ColumnColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column index of the reference point.

Default value: 100

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

Typical range of values: 0 ≤ Column Column Column Column Column column ≤ 1024

Result

drag_region2drag_region2DragRegion2drag_region2DragRegion2DragRegion2 returns 2 (H_MSG_TRUE), if a region is entered, the window is valid and the needed drawing mode (see set_insertset_insertSetInsertset_insertSetInsertSetInsert) is available. If necessary, an exception is raised. 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>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>).

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow

Possible Successors

reduce_domainreduce_domainReduceDomainreduce_domainReduceDomainReduceDomain, disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion, set_coloredset_coloredSetColoredset_coloredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth, set_drawset_drawSetDrawset_drawSetDrawSetDraw, set_insertset_insertSetInsertset_insertSetInsertSetInsert, affine_trans_imageaffine_trans_imageAffineTransImageaffine_trans_imageAffineTransImageAffineTransImage

Alternatives

get_mpositionget_mpositionGetMpositionget_mpositionGetMpositionGetMposition, move_regionmove_regionMoveRegionmove_regionMoveRegionMoveRegion, drag_region1drag_region1DragRegion1drag_region1DragRegion1DragRegion1, drag_region3drag_region3DragRegion3drag_region3DragRegion3DragRegion3

See also

set_insertset_insertSetInsertset_insertSetInsertSetInsert, set_drawset_drawSetDrawset_drawSetDrawSetDraw, affine_trans_imageaffine_trans_imageAffineTransImageaffine_trans_imageAffineTransImageAffineTransImage

Module

Foundation


ClassesClassesClassesClasses | | | | Operators