简体   繁体   English

学习Java 2D API有哪些好资源?

[英]What are good resources to learn the Java 2D API?

I already know about the tutorials on Oracle's site. 我已经了解了Oracle网站上的教程。 I would like something with more practical advice but also with a more systematic coverage of the fundamental concepts . 我想要一些更实用的建议,同时更系统地涵盖基本概念。 I am not interested in Swing and GUI desktop application, more into batch image processing. 我对Swing和GUI桌面应用程序不感兴趣,更喜欢批处理图像处理。

I found the O'Reilly book by Jonathan Knudsen to be a good resource for me. 我发现Jonathan Knudsen撰写的O'Reilly书对我来说是一个很好的资源。

Java 2D Graphics
Jonathan Knudsen
ISBN 1-56592-484-3

That said, it is kind of hard to address tons of 2D API stuff without stumbling upon some of Swing's details, as the default Graphics rendering object of the Swing drawing routines is a Graphics2D object. 也就是说,如果没有绊倒一些Swing的细节,很难解决大量的2D API问题,因为Swing绘图例程的默认图形渲染对象是Graphics2D对象。 So the simplest thing to do is to override a Component's rendering routine to demonstrate the point you are trying to make. 因此,最简单的方法是覆盖Component的渲染例程,以演示您尝试制作的点。

That said, the above book is also a bit dated from the Swing rendering point of view. 也就是说,从Swing渲染的角度来看,上面的书也有点过时了。 The correct way of handling Swing's newer multi-threading properties (invoking Runnables via Swing's invokeLater(...) ) isn't even mentioned. 处理Swing的新多线程属性(通过Swing的invokeLater(...)调用Runnables)的正确方法甚至没有提到。 However, the actual 2D API is covered in good depth and detail, and it does provide some pointers for "out of Swing" 2D processing (A PNG Decoder example in chapter 11). 然而,实际的2D API包含了很好的深度和细节,它确实提供了一些“超出Swing”2D处理的指针(第11章中的PNG解码器示例)。

The very best introduction I have found until now is this two-part article series on the Sun Developer Network (now Oracle). 到目前为止,我发现的最好的介绍是关于Sun Developer Network(现在是Oracle)的这个由两部分组成的系列文章。 It starts at http://www.oracle.com/technetwork/articles/javase/java2dpart1-137217.html . 它从http://www.oracle.com/technetwork/articles/javase/java2dpart1-137217.html开始。

That said I'm still wishing for something more substantial. 那说我仍然希望有更实质的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM