L_VecGetLayerByIndex

Summary

Gets the layer at the specified index in the specified vector handle.

Syntax

#include "ltvkrn.h"

L_LVKRN_API L_INT L_VecGetLayerByIndex(pVector, nIndex, pLayer)

Parameters

const pVECTORHANDLE pVector

Pointer to the vector handle.

L_INT nIndex

Index of the requested layer. This index is zero-based. Possible values are between 0 and L_VecGetLayerCount - 1.

pVECTORLAYER pLayer

Pointer to a VECTORLAYER structure to be updated with the layer handle, if the layer is found.

Returns

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

Comments

To determine the number of layers in a vector handle, call L_VecGetLayerCount.

To get a layer, given the name of the layer, use L_VecGetLayerByName.

To get layer information for a specific layer, call L_VecGetLayer.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_VecGetLayerCount.

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

LEADTOOLS Vector C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.