L_SetJBIG2Options

#include "l_bitmap.h"

L_INT EXT_FUNCTION L_SetJBIG2Options(pOptions)

pFILEJBIG2OPTIONS pOptions;

/* pointer to a FILEJBIG2OPTIONS structure */

Sets the file options used by LEADTOOLS for saving JBIG2 files.

Parameter

Description

pOptions

Pointer to the FILEJBIG2OPTIONS structure that contains the options to be used for saving JBIG2 files.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

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.

Required DLLs and Libraries

LTFIL

File format DLLs

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

Windows 95 / 98 / Me, Windows 2000 / XP, Windows CE.

See Also

Functions:

L_GetJBIG2Options

Topics:

Raster Image Functions: Saving Files

 

Loading and Saving Images

Example

// This example will make it so the next time you save
// a JBIG2 file, it will be saved with Template #3
|FILEJBIG2OPTIONS JBIG2Options;
// get the current values. I only want to change the
// template
L_GetJBIG2Options
(&JBIG2Options, sizeof(FILEJBIG2OPTIONS));
// set the Image template value to 3
JBIG2Options.ucImageTemplateType = 3;
JBIG2Options.ucTextTemplateType = 3;
// set the compression options. The next time I save a
// JBIG2 file, it will be saved with te mplate # 3
L_SetJBIG2Options
(&JBIG2Options);