有什么简单的方法可以在Scheme中操作图像吗?
我想将位图(以某种方式表示为列表)保存为某种无损图像格式(例如 png)。
我正在使用 mit-scheme,但我可以切换到任何其他(免费)解释器,因为我的代码目前是标准的。
最佳答案
在 Racket ,你可以使用这个包:
(require 2htdp/image)
来自documentation :
The image teachpack provides a number of basic image construction functions, along with combinators for building more complex images out of existing images. Basic images include various polygons, ellipses and circles, and text, as well as bitmaps. Existing images can be rotated, scaled, flipped, and overlaid on top of each other.
关于image - 方案图像处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21654622/