NTPSetOption (Graphic export)

 

The following is a description of the options supported by the graphics export module. These options may be set by usingNTPSetOption. These options may partially be set by using the printer selection dialogue.

 

 

NTPOPTION_GRAPHICEXP_RESOLUTION

Defines the resolution in dpi for the graphics generation.

The default is 96dpi, screen resolution.

 

 

NTPOPTION_GRAPHICEXP_JPEGQUALITY

Specifies the quality and the related compression factor for the generated JPEG graphics. The value is between 0... 100, whereby 100 is equivalent to the maximum JPEG quality (and the worst compression rate).

Default is 100.

 

 

NTPOPTION_GRAPHICEXP_BITSPERPIXEL

Defines the color depth for the generated graphics files. For an export, 256 colors are usually sufficient. It should be noted, that for higher color depths, graphics files can explode in size.

1 = Black and white

4 = 16 colors

8 = 256 colors

24 = 24bit True Color

32 = 32bit True Color

Default: 8

 

 

NTPOPTION_GRAPHICEXP_PATH

Defines the target path for the export. If an empty string is passed, the user will be presented with a path selection dialogue.

 

 

NTPOPTION_GRAPHICEXP_FILE

Provides the file name for the files. If the option is set, it is necessary to set printf-placeholders as "%08d" (e.g. "export page %d.bmp"). In this case, the first and following pages are named by replacing the placeholder via the appropriately formatted page number. Otherwise pages will simply be numbered.

 

 

NTPOPTION_GRAPHICEXP_QUIET

Specifies if the export is to be generated with user interaction.

0 = User interaction/dialogues allowed

1 = No target path dialogue (provided the path has been set) and no "overwrite?" query. A summary of the overlapping objects that where ignored is not shown either.

Default: 0

 

 

NTPOPTION_GRAPHICEXP_SHOWRESULT

Specifies if the application registered with the file name is to be started automatically after the export is completed.

0 = Do not show results

1 = Initiates a ShellExecute() on file names, which normally leads to the start of a graphics processing software.

Default: 0

 

 

NTPOPTION_GRAPHICEXP_TIFFCOMPRESSTYPE

Sets the compression type for the created TIFF file. Please note, that not all viewers support compression.

 

Value

Is equivalent to

CCITTRLE

CCITT Modified Huffmann RLE

CCITT3

CCITT Group 3 Fax Coding

CCITT4

CCITT Group 4 Fax Coding

JPEG

JPEG DCT Compression

ZIP

ZIP Compression

None

No compression

Default:  None

 

 

NTPOPTION_GRAPHICEXP_TIFFQUALITY

Sets the compression quality for the created TIFF file.

Possible values 0...100.

Default: 75