| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (5 out of 10)

Creating an Image Definition

An image definition is an instance of the system-defined class IMAGE-DEFINITION.

To create an image definition:

The class-specific attributes of an image definition are as follows:

.
Attribute Description
Names
Any symbol representing the name of the image that you want to use.
Allowable values:
Any symbol
Default value:
none
Notes:
You must provide an image definition name since you reference it when you use the definition in a KB.


File-name-of-image
A text string of the pathname of the image file you want to use.
Allowable values:
Any valid filename of a GIF or XBM image.
Default value:
none


Save-image-data-with-kb
Determines whether an image file is stored as part of a KB, or resides externally to a KB in an appropriate directory. See Saving an Image with a KB for more information about this.
Allowable values:
yes
no

Default value:
no


Format-of-image
The file format. G2 supplies this information dynamically after you enter (or update) a valid image filename. You cannot edit this attribute.
Allowable values:
xbm
gif

Default value:
none


Width-of-image
The width of the image as an integer value representing workspace units. G2 supplies this information dynamically after you enter (or update) a valid image filename. You cannot edit this attribute. Use this and the height-of-image values to determine the appropriate icon size in the icon editor. For more information, see Image Size and Icon Size.


Height-of-image
The height of the image as an integer value representing workspace units. G2 supplies this information dynamically after you enter (or update) a valid image filename. You cannot edit this attribute. Use this and the width-of-image values to determine the appropriate icon size in the icon editor. For more information, see Image Size and Icon Size.


Depth-of-image
The depth of the image as an integer value representing bits. This value is always 1 for XBM images, and ranges from 1 to 8 for GIF images. G2 supplies this information dynamically after you enter (or update) a valid image filename. You cannot edit this attribute.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (5 out of 10)

Copyright © 1997 Gensym Corporation, Inc.