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

This function scales the entity according to the specified scale factors.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_ent_scale(
   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 scaled.
fX VECT_REAL Scale factor in X direction.
fY VECT_REAL Scale factor in Y direction.
fZ VECT_REAL Scale factor in Z direction.
bBefore VECT_BOOL Specifies how the scale matrix is multiplied by the entity 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 scale matrix using fX, fY, and fZ scale factors and multiplies it by the correct entity matrix according to the bBefore flag.