如何在GIMP中制作API?

发布于 2024-11-07 13:42:41 字数 508 浏览 9 评论 0原文

我在 Visual Studio 2010 中使用 Opencv 制作有关图像处理的 API,然后在 Android 中使用它们。现在我开始使用 gimp 和 gegl 库来做同样的事情。但我没有找到任何关于如何做的参考。

我只想知道如何使用 gimp 加载和图像,然后操作图像并最终获得输出。功能是什么?我看到了一些 gimp 插件的代码。但 main() 函数不存在。就像在opencv中一样,我有这样的东西..

int main(int argc, char** argv)
{
}

我尝试使用此链接中的代码 如何使用-gimp-drawable-set-pixel。我应该得到一个红色像素。但我无法在 Visual Studio 中编译它。我得到这个:Native' 已退出,代码为 1 (0x1)。 我不明白我错过了什么。

I was using Opencv to make APIs about image processing in visual studio 2010 and then use them in Android. now i started to use gimp and gegl library to do the same. but i dont find any reference about how to do.

i just want to know how to load and image using gimp and then manipulate the image and finally get an output. what are the functions? i saw some codes for gimp plugins. but the main() function is not present there. like in opencv i have something like this..

int main(int argc, char** argv)
{
}

i tried to use the code from this link how-to-use-gimp-drawable-set-pixel. i am supposed to get a red pixel. but i cannot compile it in visual studio. i get this: Native' has exited with code 1 (0x1).
i dont understand what i am missing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

牵强ㄟ 2024-11-14 13:42:41

最好的办法是进入 Gimp IRC 频道。您可以在这里找到有关它的更多信息:
http://wiki.gimp.org/index.php/Users:Beginner_Developer%27s_FAQ

The best thing is to go into the Gimp IRC-Channel. You can find more infos about it here:
http://wiki.gimp.org/index.php/Users:Beginner_Developer%27s_FAQ

愚人国度 2024-11-14 13:42:41

也许 Gimp# 可以在这里为您提供帮助。

这是一个为 Gimp 提供 C# API 的插件,可以在 Sourceforge 中找到。

这是该网站自己的描述:

GIMP# 是 GIMP 的 API 包装器,
用 C# 编写。然而,这不仅仅是
一个包装纸。它还添加了薄薄的一层
它添加了 C# 特定的功能,例如
迭代集合。一个
这是一个迭代的例子
通过图像的指南。

It may be that Gimp# can help you here.

This is a Plugin that provides an C# API for Gimp and can be found at Sourceforge.

This it's own description from the site:

GIMP# is an API wrapper around GIMP,
written in C#. However, it's not just
a wrapper. It also adds a thin layer
which adds C# specific features, like
iterating through a collection. An
example of this is an iteration
through the guides of an image.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文