Overview of the Vector Structures

A vector image (or drawing) is referenced in LEADTOOLS by a VECTORHANDLE structure. This VECTORHANDLE structure is maintained internally. For a description of the entire structure, refer to the LTVKRN.H header file.

Within the VECTORHANDLE that references the vector image there are one or more VECTORLAYERS. Again, the VECTORLAYER structure is maintained internally by LEADTOOLS. However, information about vector layers can be obtained or set using a VECTORLAYERDESC structure. LEADTOOLS provides several functions for working with vector layers. For more information, refer to Working with Vector Layers.

Each vector layer may contain 0 or more VECTOROBJECTS. LEADTOOLS supports the following vector objects:

VECTORARC

VECTORCHORD

VECTORCIRCLE

VECTORELLIPSE

VECTORELLIPTICALARC

VECTORLINE

VECTORPIE

VECTORPOLYBEZIER

VECTORPOLYDRAW

VECTORPOLYLINE

VECTORPOLYGON

VECTORRASTER

VECTORRECTANGLE

VECTORTEXT

VECTORVERTEX

There is certain information that is common to all vector objects. This is contained in the Object member (type VECTOROBJECT) of each object's respective structure. Information specific to certain types of vector objects is included in that object's specific structure. For example, a VECTORRECTANGLE structure contains information about the pen and brush used to draw the rectangle, as well as an array of points that define the rectangle.

LEADTOOLS provides numerous functions for creating and manipulating vector objects. In addition, functions are provided for obtaining information about vector objects. For more information, refer to Working with Vector Objects.

When displaying vector objects, the user can modify the way the objects are displayed by setting anti-aliasing options, setting text rendering characteristics, providing a tool tip, or other display options. LEADTOOLS provides the following structures to help in modifying the display:

VECTOR_ANTIALIASING

VECTOR_DISPLAY_OPTIONS

VECTOR_TEXTRENDER

VECTORTOOLTIPDESC

A vector object may be hyperlinked with one or more targets, allowing the user to run a program, access a Web page, open a document, or focus the toolkit to a specific vector object. LEADTOOLS provides the following structures for working with hyperlinked vector objects:

VECTORLINKDESC

VECTORLINKFILEINFO

VECTORLINKHANDLING

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

LEADTOOLS Vector C API Help