IMG_PageSetFormat.....Parameter Question

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's Image-XChange Imaging SDK (only).

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
neilpitman
User
Posts: 39
Joined: Fri Jun 17, 2005 8:38 am

IMG_PageSetFormat.....Parameter Question

Post by neilpitman » Mon Jun 01, 2009 8:56 am

1. Please could you advise of the correct way to get the ID and correct parameters required for the parameter setting functions such as IMG_PageSetFormatLongParameter. We couldn't find a clear method in the documentation.

We are able to successfully create JBIG2 files using the approach below, but need to be able to adjust the default parameters.

....
hr=IMG_PageFillDefaultFormatParams(hPage,pageFormat);
hr=IMG_PageCorrectFormatParams(hPage,pageFormat);
hr=IMG_ImageInsertPage(image,0,hPage);
IMG_ImageInsertPagesToFile(image,pictureFileName,pagenum);

2. Is there any more detailed information on the meaning of the different parameters? We can see the list in the sample application, but there doesn't seem to be any more detailed information (eg MMR vs ISO JBIG, Encoding Types etc).

Thanks for your help

Neil Pitman
Aquaforest

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: IMG_PageSetFormat.....Parameter Question

Post by Ivan - Tracker Software » Wed Jun 10, 2009 3:14 pm

Looks like into documentation information how to get open and save parameters is missing. Will update it.

To get buffer with all parameters it is needed to use function IMG_GetFormatSaveParams/IMG_GetFormatOpenParams
I will describe into help file details about these functions.
For JBIG2 you can use the following ids:

Code: Select all

ID         Type       Possible Values    Default Value           Description
'DITH'     LONG       0 or 1             1                       Use dithering or not (0 - no dithering; 1 - use dithering)
'DPIX'     LONG       50 - 9600          96                      Horizontal DPI
'DPIY'     LONG       50 - 9600          96                      Vertical DPI
'COMP'     LONG       9 or 4             9                       Compression type (9 - ISO JBIG; 4 - MMR)
'ENC '     LONG       0 or 2             0                       If it is 2, symbols encoding will be used (i.e. image will be analyzed for symbols, and symbols/text segments will be used); 0 - general
'ACC '     LONG       0 or 1             0                       Type of segments organizations into JBIG2 file - sequential (0) or random (1)
2. Is there any more detailed information on the meaning of the different parameters? We can see the list in the sample application, but there doesn't seem to be any more detailed information (eg MMR vs ISO JBIG, Encoding Types etc).
Into JBIG2 some segments can be encoded using arithmetic encoder (ISO JBIG) or MMR encoder (CCITT4).

HTH
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Post Reply