1

我需要使用命令保存在 ucblogo 中生成的图像。我有很多徽标程序要按顺序执行,并且需要将每个徽标的输出图像存储为 jpeg 文件。我正在使用 Ubuntu 16.04。

我尝试在每个 Logo 程序的末尾使用 savepict 命令。它保存了一些图像,但该图像没有打开。

有什么建议么?

4

1 回答 1

1

尝试在 UCBLogo 中使用 EPSPICT 命令,然后使用外部转换器转换为 JPEG。外部转换器可以是 Imagemagick 包中的 CONVERT 命令

EPSPICT filename

command.  Writes a file with the specified name, containing
an Encapsulated Postscript (EPS) representation of the state
of the graphics window.  This file can be imported into other
programs that understand EPS format.  Restrictions: the
drawing cannot use FILL, PENERASE, or PENREVERSE; any
such instructions will be ignored in the translation to
Postscript form.
于 2018-01-17T14:39:19.173 回答