GetFaxPage Method

 

Description   This method can be used to extract individual pages from a fax object to a file or to a DIB in memory.

Usage            [FAX].GetFaxPage FaxID PageNum Type Append

Returns        Returns 0 on success, or the error code otherwise.

 

Remarks       FaxID                 Long           The ID of the fax object.

 

PageNum           Short          Page number in the fax. The number of the first page is 1, not 0.

 

Type                  Short          The type of the destination image:

PAGE_FILE_BMP                   - The image of the page will be written to a Windows bitmap file.

PAGE_FILE_PCX                             - The image of the page will be written to a           PCX file.     

PAGE_FILE_DCX                   - The image of the page will be written to a DCX file.

PAGE_FILE_TGA                    - The image of the page will be written to a           TGA file.

PAGE_FILE_JPEG                 - The image of the page will be written to a           JPEG file.

PAGE_FILE_TIFF_NOCOMP   - The image of the page will be written to an uncompressed TIFF file.         

PAGE_FILE_TIFF_PACKBITS - The image of the page will be written to a TIFF file with packbits compression.

PAGE_FILE_TIFF_LZW           - The image of the page will be written to a TIFF file with LZW compression.

PAGE_FILE_TIFF_LZDIFF      - The image of the page will be written to a TIFF file with differential LZW compression.

PAGE_FILE_TIFF_G31DNOEOL - The image of the page will be written to a TIFF file with Group 3 one-dimensional compression, without EOL characters.                  

PAGE_FILE_TIFF_G31D         - The image of the page will be written to a TIFF file with Group 3 one-dimensional compression.

PAGE_FILE_TIFF_G31D_REV - The image of the page will be written to a TIFF file with Group 3 one-dimensional compression, with reverse bit order.

PAGE_FILE_TIFF_G32D         - The image of the page will be written to a           TIFF file with Group 3 two-dimensional compression.

PAGE_FILE_TIFF_G4             - The image of the page will be written to a           TIFF file with Group 4 compression.

PAGE_FILE_DIRECT              - The image of the page will be written to a destination file as raw CCITT compressed data.

PAGE_MEMDIB                     - The page will be copied to a device independent bitmap. The handle to this DIB is returned in the hDIB property.

 

Append Boolean                   - If the output is a TIFF or DCX file, it is possible to write multiple images in the samefile. If this parameter is TRUE the image will be appended to the existing file. If it is False, the existing file will be over-written.

See Also        SetFaxPage method