Sets the object information of the specified vector object. This function is available in the LEADTOOLS Vector Imaging Toolkit.
#include "ltvkrn.h"
L_LVKRN_API L_INT L_VecSetObject(pVector, pObject, nType, pObjectDesc)
Pointer to a vector handle.
Pointer to a vector object.
Type of object to set. Possible values are:
Value | Meaning |
---|---|
VECTOR_ARC | Arc. |
VECTOR_CHORD | Chord. |
VECTOR_CIRCLE | Circle. |
VECTOR_CLONE | Clone object of a vector group. |
VECTOR_ELLIPSE | Ellipse. |
VECTOR_ELLIPTICALARC | Elliptical arc. |
VECTOR_LINE | Line. |
VECTOR_PIE | Pie section. |
VECTOR_POLYBEZIER | Poly Bezier curve. |
VECTOR_POLYDRAW | Polydraw. |
VECTOR_POLYGON | Polygon. |
VECTOR_POLYLINE | Polyline. |
VECTOR_RASTER | Raster. |
VECTOR_RECTANGLE | Rectangle. |
VECTOR_TEXT | Text. |
VECTOR_VERTEX | 3D vertex in space. |
Pointer to a vector object structure that contains the object information to be set.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This function is used to update the object information of the specified vector object.
If nType is set to VECTOR_OBJECT, this function will only update the general VECTOROBJECT structure information common to all object types.
If you want to update specific information about an object, set the nType member to the desired object type and set pObjectDesc to the address of the appropriate vector object structure.
For an example, refer to L_VecGetObject.