L_VecGetLayoutCount

#include "ltvkrn.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_LTVKRNTEX_API 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 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.