fgl_report_configureImageDevice
Configure the image output.
Syntax
fgl_report_configureImageDevice (
antialiasFonts BOOLEAN,
antialiasShapes BOOLEAN,
monochrome BOOLEAN,
fromPage INTEGER,
toPage INTEGER,
fileType STRING,
filePath STRING,
fileNamePrefix STRING,
resolution INTEGER)
- antialiasFonts - Configures whether fonts are rendered using antialiasing. The default value is true.
- antialiasShapes - Configures whether shapes are rendered using antialiasing. The default value is true.
- monochrome - Configures whether color values are converted to monochrome output. The default value is true.
- fromPage - Selects the lower bound of the range of pages to create images for. The default value is 1.
- toPage - Selects the upper bound of the range of pages to create images for. By default, images are created for all pages.
- fileType - One of jpg|png|bmp|gif. The default is jpg.
- filePath - Path of the target directory where the images are created. If the specified path is relative, the GREOUTPUTDIR environment variable is used to determine the full path. The default file path is the value of the GREOUTPUTDIR environment variable, or the current working directory of the report engine if GREOUTPUTDIR isn't set.
- fileNamePrefix - Name prefix of the generated files. For example, setting namePrefix to "Chart" causes the creation of files called "Chart0001", "Chart0002", and so on. The default value is "Image".
- resolution - Controls the resolution used for creating the images. If the image is later viewed unscaled on a device with the specified resolution, all items will have their correct metric length. Beware that high values may require enormous amounts of memory and the resulting files may become very large. The formula for calculating the memory consumption in bytes is resolution_in_dpi_x * page_width_in_inches * resolution_in_dpi_y * page_height_in_inches * 3byte for a color image. For a page of format "letter" at 96 DPI we therefore get 96DPI*8.5"*96DPI*11"*3byte=2.6 MB. At 300 DPI this is 25 MB (color) and 8 MB (grayscale). The renderer currently requires the entire page to be in memory. The default value is 96.
Usage
This function is applicable when image output has been selected by a call to the function fgl_report_selectDevice.
All arguments to this function are optional (indicated by passing a null value).
For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.