image-definition in the Background-images attribute for the workspace. For more information about image definitions, see Chapter 30, External Images.
The image definition must refer to a file that contains the bitmap graphics data. The image definition bitmap itself can be up to 65,536 by 65,536 pixels in size.
world-map, enter the following statement in the Background-images attribute:
world-map at (10,10)
Various GIFs that can be used as workspace background images are available in the G2
demos directory, as described under GIF Files.
Specifying the Center of the Background Image
The x, y coordinates in the Background-images attribute identify where G2 places the center of the image. G2 positions the center of the image with respect to the center of the workspace's extent; it does not position the image with respect to the workspace origin. Background-images attribute:
Background-images attribute to include the x, y coordinates within the workspace's extent where the image's center was placed.
![]() |
The three objects on the right half of each workspace display their respective item-x-positions and item-y-positions in attribute displays. The attribute displays indicate that the workspace origin is not within its extent.
Background-images attribute, with no x, y coordinates included, G2 changes this workspace by automatically:
Background-images attribute to include the x, y coordinates for the location of the image's center.
Background-images attribute, such as:
world-map at (10,10), map-legend at (100,100)
Background-images attribute, and if the extents of the images overlap, G2 displays image definitions at the end of the list on top of those at the beginning of the list. yes as the value of the Save-image-data-with-kb attribute of the image definition referenced in the Background-images attribute. Doing so prevents you from inadvertently separating the image data from your KB when you move the KB to another system, but doing so also increases the size of your KB file when next saved.
Background-images attribute, and if that image is in color, then the first time G2 displays the image, its colors might not appear in the colors you expect. If so, set the Image-palette attribute in the Drawing Parameters system table to extended-colors, rather than standard-colors.
Background-images attribute of the workspace
g2-refresh-image-definition system procedure