高端 2D Java (SE) 图形库

发布于 2024-08-23 19:59:20 字数 1539 浏览 9 评论 0原文

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

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

发布评论

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

评论(4

就是爱搞怪 2024-08-30 19:59:20

您要求的所有效果都可以使用 Java 2D 相当简单地完成,并且 Java2D 在某种程度上是硬件加速的。 Filthy Rich Clients 一书展示了如何实现所有这些效果以及许多其他效果。 画家SwingX 也实现了其中一些效果。

另一种可能性是JavaFx。它内置了很多效果。一年半前我尝试的时候,它仍然有点慢,但从那时起至少已经发布了一个版本。现在可能性能更高。它构建在 Java2D 之上,因此它应该能够利用 Java2D 中的硬件加速。

至于全屏支持这里有更多信息

All of the effects you ask for can be done with Java 2D fairly simply and Java2D is to some degree hardware accelerated. The book Filthy Rich Clients shows how to implement all of these effects and many others. Painters in the SwingX has also implemented several of these effects.

Another possibility is JavaFx. It has a lot of effects built in. A year and a half ago when I tried it, it was still a little slow, but at least one version has been released since then. It may be more performant now. It's built on top of Java2D, so it should be able to take advantage of the hardware acceleration in Java2D.

As far as full screen support here's more information.

未央 2024-08-30 19:59:20

也许处理主页)可能是一个很好的权衡。

  • 它有 4 种支持,包括 OpenGL
  • 它有 AA
  • 它是 2d 或 3d
  • 它支持硬件加速
  • 它支持转换
  • 它的语法很容易学习
  • 它很容易嵌入
  • 你需要学习的一切都在 页面

Maybe Processing (homepage) can be a good tradeoff.

  • it has 4 kinds of backing, including OpenGL
  • it has AA
  • it is 2d or 3d
  • it supports hw acceleration
  • it supports transformations
  • its syntax is quite easy to learn
  • it's easily embeddable
  • everything you need to learn is in this page
2024-08-30 19:59:20

不是真正的图形库,而是高级小程序和图形库:
PulpCore

确保获取最新版本(甚至可以通过以下方式获取源代码) Mercurial 并自己构建),因为您提到的滤镜效果(模糊等)在早期版本中不可用。
我知道这可能不完全是您正在寻找的;它不是一种处理替代方案,但它可能是更好的选择,具体取决于您打算做什么。

Not really a graphics library but rather an advanced applet AND graphics library:
PulpCore

Be sure to grab a quite recent version (maybe even fetch the source via mercurial and build it yourself) because the filter effects you mentioned (blur etc.) aren't available in earlier versions.
I know it might not be exactly what you're looking for; it is not a processing alternative, but it might be the better choice, depending on what you're planning to do.

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