Next: , Previous: , Up: Images   [Contents][Index]


50.2.2 Image Instantiator Conversion

Conversion is applied to image instantiators at the time they are added to an image specifier or at the time they are passed to make-image-instance.

Function: set-console-type-image-conversion-list console-type list

This function sets the image-conversion-list for consoles of the given console-type. The image-conversion-list specifies how image instantiators that are strings should be interpreted. Each element of the list should be a list of two elements (a regular expression string and a vector) or a list of three elements (the preceding two plus an integer index into the vector). The string is converted to the vector associated with the first matching regular expression. If a vector index is specified, the string itself is substituted into that position in the vector.

Note: The conversion above is applied when the image instantiator is added to an image specifier, not when the specifier is actually instantiated. Therefore, changing the image-conversion-list only affects newly-added instantiators. Existing instantiators in glyphs and image specifiers will not be affected.

Function: console-type-image-conversion-list console-type

This function returns the image-conversion-list for consoles of the given console-type.