Sets the file options used by LEADTOOLS for saving JBIG2 files.
#include "ltwrappr.h"
static L_INT LFileSettings::SetJBIG2Options(pOptions)
Pointer to the FILEJBIG2OPTIONS structure that contains the options to be used for saving JBIG2 files.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The uStructSize member of the FILEJBIG2OPTIONS structure must be set before calling this function.
The values set by this function are valid for the current thread. To change the values used by the current thread, this function must be called again.
Win32, x64.
This example will make it so the next time you save a JBIG2 file, it will be saved with Template #3.
L_INT LFileSettings__SetJBIG2OptionsExample()
{
L_INT nRet = FAILURE;
FILEJBIG2OPTIONS JBIG2Options;
// get the current values. I only want to change the template
nRet = LFileSettings::GetJBIG2Options ( &JBIG2Options, sizeof(FILEJBIG2OPTIONS));
if(nRet != SUCCESS)
return nRet;
// set the Image template value to 3
JBIG2Options.ucImageTemplateType = 3;
JBIG2Options.ucTextTemplateType = 3;
// set the compression options. The next time a
// JBIG2 file is saved, it will be saved with template # 3
nRet = LFileSettings::SetJBIG2Options(&JBIG2Options);
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document