L_VecSetObject

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecSetObject(pVector, pObject, nType, pObjectDesc)

Sets the object information of the specified vector object. This function is available in the LEADTOOLS Vector Imaging Pro Toolkit.

Parameters

pVECTORHANDLE pVector

Pointer to a vector handle.

pVECTOROBJECT pObject

Pointer to a vector object.

L_INT nType

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.

const L_VOID * pObjectDesc

Pointer to a vector object structure that contains the object information to be set.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_VecGetObject.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Vector C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.