AddMODCAPage Method

 

Description

Adds a DIB image as a new page to a MO:DCA file in created with the CreateMODCAFile or the CreateMODCAFileMem functions.

Syntax

Result = [BITIFF.] AddMODCAPage MODCAHandle Dib, Compression, Quality

Parameters

MODCAHandle

LONGLONG

Handle returned by the CreateMODCAFile or CreateMODCAFileMem functions.

 

Dib

LONGLONG

Handle to a DIB image.

 

Compression

Long

The compression to use. The following compression types are supported:

 

 

 

·         1: IBM MMR (1 bit)

·         3: Not compressed (1 bit)

·         128: CCITT Group 3, 1 Dimensional (1 bit)

·         129: CCITT Group 3, 2 Dimensional (1 bit)

·         130: CCITT Group 4 (1 bit)

·         131: JPEG (8 bit grayscale or 24 bit)

 

Quality

Long

Compression quality. It is only used by the JPEG compression type. The value must be between 1 and 99.

Return Value

Zero on success, or an error code on failure. For the possible error codes, please see the BiTiff.ocx error codes.