O'Reilly logo

Practical Programming in Tcl & Tk, Third Edition by Brent B. Welch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating Postscript

The postscript operation generates postscript based on the contents of a canvas. One limitation to note is that embedded windows are not captured in the postscript output. Table 34-12 summarizes all the options for generating postscript:

Table 34-12. Canvas postscript options.
-colormap varNameThe index of varName is a named color, and the contents of each element is the postscript code to generate the RGB values for that color.
-colormode modemode is one of color, grey, or mono.
-file nameThe file in which to write the postscript. If not specified, the postscript is returned as the result of the command.
-fontmap varNameThe index of varName is an X font name. Each element contains a list of two items: a postscript font name ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required