image - 方案图像处理

标签 image functional-programming scheme

有什么简单的方法可以在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/

相关文章:

functional-programming - 从一棵树中找到最大值

sql - SSRS - 如何根据列内的 URL 显示外部图像

linux - 在 Linux 上将带有阿拉伯文本的 PDF 转换为图像

macros - 为什么这个 lisp 递归宏不起作用?

scheme - 调用 cc 示例 Racket

r - 函数参数在 R 的 'combn' 中如何工作?

javascript - 删除循环中的动态图像

image - HTML5 缓存 list : whitelisting ALL remote resources?

r - 将矩阵划分为 R 中的列表时出现奇怪的输出

arrays - 我如何在功能上将对象数组转换为不同的结构