L_VecSetObject

#include "lvkrn.h"

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

pVECTORHANDLE pVector;

/* pointer to a vector handle */

pVECTOROBJECT pObject;

/* pointer to a vector object */

L_INT nType;

/* object type */

const L_VOID L_FAR * pObjectDesc;

/* pointer to a vector object structure */

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

Parameter

Description

pVector

Pointer to a vector handle.

pObject

Pointer to a vector object.

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_STOCK

Stock object from a stock library.

 

VECTOR_TEXT

Text.

 

VECTOR_VERTEX

3D vertex in space.

pObjectDesc

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

Returns

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

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_VecGetObject

Topics:

Working with Vector Objects

Example

For an example, refer to L_VecGetObject.