Imported Graphics

Corda Server™ can import graphics into an Image Template file, which is useful for adding a background for the objects in the Image Template file, or for adding company logos to Corda® images.

Import graphics in either GIF or JPEG formats.

This section includes the following sections:

Warning: Importing very large images can seriously decrease Corda Server’s performance.

Importing Graphics to an Image Template File

Import a graphic into an Image Template file with Corda Builder™. For more information, see Imported Images in the Corda Builder User Guide.

Note: Corda Builder encodes images in Image Template files, thereby preventing you from adding image objects dynamically. Rather, create a separate Image Template file containing just the image, and then overlay it (see Adding Objects to an Image Template File). Alternatively, import a placeholder image into the Image Template file, and change its source dynamically, or hide the placeholder when the image is not needed.

Changing the Graphic Source

Change the source of an image using PCScript.

Important: In order for Corda Server to load any image, it must be given permission to read data from the specified path or domain. For more information, see Setting Path Permissions in the Corda 7 Install and Administration manual.

PCScript

To change the imported image source in PCScript, use the bitmap.loadFile() method.

Drilldown for an Imported Graphic

Enable drilldown effects for an imported image using either ITXML or PCScript.

For information about drilldown effects, see Building Drilldown

ITXML

To enable drilldown for an imported image with ITXML, modify the Image object and add a drilldown property. More information about this object is available in the Corda 7 Object Reference in Corda Builder.

PCScript

To enable drilldown for an imported image in PCScript, use the bitmap.ddEnable() method.

Hiding a Graphic

Hide an existing imported graphic in an Image Template file using either ITXML or PCScript.

ITXML

To hide an imported image with ITXML, modify the Image object and set the Visible property to false . More information about this object is available in the Corda 7 Object Reference in Corda Builder.

PCScript

To hide an imported image in PCScript, use the bitmap.hide() method.