在Go(Golang)中显示图像。

huangapple go评论74阅读模式
英文:

showing images in go (golang)

问题

我正在使用Go语言编写一个处理图像的算法,我想知道,在Go语言中是否有一种简单的方法来显示图像(类似于图形用户界面)。
最好的方式是不写入文件,而是使用一些超级简单的图形用户界面函数来显示图像。

有什么建议吗?

英文:

I am writing a algorithm in go (golang) that manipulates images and I am wondering, is there a simple way to show images in go (i.e similar to a gui).
The best way would not write a file and show it but just show it using some super simple gui function.

Any suggestions?

答案1

得分: 2

使用net/http中的工具来创建一个简单的Web界面非常简单。客户端只需要足够的JavaScript来创建图像请求的URL,然后你就可以开始了。

英文:

It is straightforward to expose a simple web interface using the tools in net/http. Just enough javascript on the client side to create the image request URL and you're in business.

huangapple
  • 本文由 发表于 2014年4月12日 08:21:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/23024594.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定