L_DeletePage

#include "l_bitmap.h"

L_LTFIL_API L_INT L_DeletePage(pszFile, nPage, uFlags, pSaveOptions)

Deletes the specified page from a multi-page file, if the format supports delete operations.

Parameters

L_TCHAR* pszFile

Character string containing the name of the file from which to delete the page.

L_INT nPage

Number of the page to delete. Use -1 to delete the last page. Use 1 to delete the first page.

L_UINT uFlags

Reserved. Use 0.

pSAVEFILEOPTION pSaveOptions

Pointer to optional extended save options. Pass NULL to use the default save options.

Returns

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

Comments

The following file formats support delete operations:

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Example

delete first page of "test.tif"

L_INT DeletePageExample(L_VOID) 
{ 
   L_INT nRet; 
   nRet = L_DeletePage(MAKE_IMAGE_PATH(TEXT("image2.gif")), 1, 0, NULL); 
   if(nRet != SUCCESS) 
      return nRet; 
   return SUCCESS; 
} 

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

LEADTOOLS Raster Imaging C API Help