L_VecGetLayoutCount

#include "lvkrn.h"

L_LVKRN_API L_INT L_VecGetLayoutCount(pszFile, pnLayouts)

Gets number of layouts from a specific file. Currently only DXF files support layouts.

Parameters

L_TCHAR pszFile

Character string that contains the name of the file to load.

L_INT *pnLayouts

Pointer to L_INT to be updated with number of layouts.

Returns

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

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example Gets number of layouts from a specific file. Currently only DXF files support layouts

L_INT VecGetLayoutCountExample(L_VOID) 
{ 
   L_INT   nRet;       /* Return value. */ 
   L_INT   nLayouts;   /* Number of layouts */ 
 
   /* Get number of layouts in a vector image. */ 
   nRet = L_VecGetLayoutCount(MAKE_IMAGE_PATH(TEXT("FILE1.DXF")), &nLayouts ); 
 
   if( nRet != SUCCESS ) 
      /* There was an error loading the vector image. */ 
      MessageBox( NULL, TEXT("Could not load file!"), TEXT("Error"), 0 ); 
 
   return nRet; 
} 

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

LEADTOOLS Vector C API Help