L_DeletePage (original) (raw)
Summary
Deletes the specified page from a multipage file, if the format supports delete operations.
Syntax
#include "l_bitmap.h"
L_LTFIL_API L_INT L_DeletePage(pszFile, nPage, uFlags, pSaveOptions)
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:
- TIFF (most TIFF formats, including JTIF, but excluding EXIF)
- PCX
- Winfax
Required DLLs and Libraries
- LTFIL
- For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
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;
}
LEADTOOLS Raster Imaging C API Help