IN_MoveVectorObject

image\bltlrgsq_shg.gif Editions image\bltlrgsq_shg.gif Related Functions  image\bltlrgsq_shg.gif Example

The IN_MoveVectorObject function moves a specified vector object on the specified layer. Depending on your edition of Imagenation, you can move arcs, lines, polylines, polygons, ellipses, annotations, and text.

Syntax

int IN_MoveVectorObject( layerID, vectObjectID, units, x1, y1, angle, scale )

Parameters

Values

Meaning

long layerID

identifier of the layer with the object to select

long vectObjectID

identifier of the object to move

int units

units of input value in x1 and y1:
IN_UNITS_INCH (1)
IN_UNITS_CM (2)
IN_UNITS_PIXEL (3)
IN_UNITS_FT (4)
IN_UNITS_MM (5)
IN_UNITS_M (6)
IN_UNITS_POINTS (7)
IN_UNITS_TWIP (8)

double x1, y1

when angle = 0, distance to move in x and y directions

when angle ¹ 0, distance to move the center of the object MER at angle. See Remarks.

double angle

angle to move the object, expressed in radians

double scale

defines the scale factor of the object. Default is 1. Must be positive. If scale = 1, the object is moved without scaling.

Remarks

The MER is the minimum enclosing rectangle around the vector object.

Release information

Added to Imagenation for Windows in Release 8.0.

See also

Placing vector objects