ImageGear for C and C++ on Windows v19.1 - Updated
IG_vect_ent_move
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Entity Functions > IG_vect_ent_move

This function moves the entity according to the specified offsets.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_ent_move(
   HIG_VECT_ENTITY hEntity,
   VECT_REAL fX,
   VECT_REAL fY,
   VECT_REAL fZ,
   VECT_BOOL bBefore
);

Arguments:

Name Type Description
hEntity HIG_VECT_ENTITY Handle of the entity to be moved.
fX VECT_REAL Offset in X direction, in World coordinates.
fY VECT_REAL Offset in Y direction, in World coordinates.
fZ VECT_REAL Offset in Z direction, in World coordinates.
bBefore VECT_BOOL Specifies how the translation matrix is multiplied by the entity's transformation matrix. TRUE means right multiplication; FALSE means left multiplication.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

Vector

Remarks:

This function creates a translation matrix using fX, fY, and fZ offsets and multiplies it by the correct entity matrix according to the bBefore flag.