Advanced Search
Start Your Free Trial

Overview

Other Readers Also Read...
Swing Hacks

Swing Hacks
by Joshua Marinacci; Chris Adamson

Java Swing, 2nd Edition

Java Swing, 2nd Edition
by Marc Loy; Robert Eckstein; Dave Wood; James Elliott; Brian Cole

Top Sellers in this Category

Head First Java, 2nd Edition

Head First Java, 2nd Edition
by Kathy Sierra; Bert Bates

Head First Design Patterns

Head First Design Patterns
by Eric Freeman; Elisabeth Robson; Kathy Sierra; Bert Bates

Java Concurrency in Practice

Java Concurrency in Practice
by Brian Goetz; Tim Peierls; Joshua Bloch; Joseph Bowbeer; David Holmes; Doug Lea

One weakness of Java has been its graphics capabilities. Java 1.0 and 1.1 only included simple primitives for line drawing: lines could only be one pixel wide, they could only be solid, and there wasn't any good way to draw curves. Font management and color management were also weak. Java 2D (collectively called the "2D API") signals a major improvement in Java's graphics capabilities. It covers many of the classes in Java 1.2 that address graphics handling and improves on many weaknesses that were present in the previous versions of Java. The 2D API allows you to produce high-quality, professional images on a screen or printer. Java 2D Graphics describes the 2D API from top to bottom, demonstrating how to set line styles and pattern fills as well as more advanced techniques of image processing and font handling. You'll see how to create and manipulate the three types of graphics objects: shapes, text, and images. Other topics include image data storage, color management, font glyphs, and printing. Java 2D Graphics assumes no prior knowledge of graphics. Chock full of detailed explanations and examples, this book provides beginning Java programmers with a solid foundation in 2D graphics and helps more advanced programmers create and use high-quality images in their applications. Topics covered in the book include:

  • The rendering pipeline

  • Shapes and paths

  • Geometry

  • Painting with solid colors, gradients, and textures

  • Stroking paths, including dashed lines

  • Transformations: translation, rotation, shearing, and scaling

  • Alpha compositing

  • Clipping

  • Rasterizing and antialiasing

  • Fonts and text

  • Font metrics

  • Glyphs

  • Colors and color spaces

  • sRGB and CIEXYZ

  • ICC color profiles

  • Images, image color models, and image data

  • Image processing

  • Image data storage

  • Graphics devices

  • Printing

Amazon.com® Reader Reviews (Ranked by Helpfulness)

Average Amazon.com® Rating: 4.5 out of 5 rating Based on 11 Ratings

Examples have lots of ugly/nasty inner classes - yuck! - 2000-09-29
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This book's content is great even though it spends a lot of ink regurgitating the doc (symptomatic of O'Reilly). Even with this it touches on everything within 230 pages while showing many examples.

My issue with this book is the way that the examples are written. It uses inner classes left and right requiring more careful reading of the code. I know this is a philosophical issue; but in general inner classes are a lazy programmer's tool which tends to confuse code and make it harder to read/maintain. It is bad enough that they are used in documented public APIs - in a didactic text, there's no need to exacerbate this.

Content gets 4 stars. Examples get 1 star. Since code examples are really 1/2 the content, it gets only two stars. Previous book by the author (on cryptography) had much better examples - and didn't use inner classes.

Great book on the foundations of Java 2D - 2006-06-20
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
In computing, Java 2D is an API for drawing two-dimensional graphics using the Java programming language. Every Java 2D drawing operation can ultimately be treated as filling a shape using a paint and compositing the result onto the screen.

This book, although seven years old, is the best in print on learning the basics of Java 2D. Several other reviewers have said that the Java docs for the API from Sun are just as good, but I disagree. This book does a good job of taking a complex API and laying out what it takes to produce graphics using it.

It starts out explaining the architecture of the Java 2D API, and includes a very long "Hello Java 2D" example showcasing what the API can do. The author admits at the time it is presented that it is likely the reader will not understand the code until the book has been read.

Next, the author introduces the drawing of shapes, and then adds painting, stroking, transforming, compositing, and clipping to the equation, one by one, while explaining the nuances of each feature being added. Next, the author goes into adding text to your figures and also explains how to do simple image processing with the Java 2D API, even explaining how to "roll your own" image transform operations.

The book concludes with a discussion of printing, animation, and measuring performance with Java 2D. The author includes a flexible framework for performing animations using Java 2D. There is example code throughout the book that can be downloaded from the publisher's website. If you are looking for a book of image processing tricks and recipes in Java, this is not the book that you want. In that case you might want to read Hardy's excellent but out-of-print work, "Java 2D API Graphics", after you read this book. However, if you want a good foundation in programming with the Java 2D API and understanding its architecture, this is a very good source. I highly recommend it.

Not worth buying! - 2004-04-02
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This is a not worthy buying book. I bought it in Amazon, so, without flipping pages. The author expends much of the time showing things you can find in Sun's javadoc, with tiny examples. For example, I read on and on looking how to create a BufferedImage and came to nothing! If I wanted only commands, I could look in at Sun's javadoc. I bought the book expecting to find out how to stuff, not bla bla bla.

Excellent starter for using java 2D graphics - 2004-10-07
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
The book gives a very good introduction to java 2D graphics programming. I bought in in order to come up to speed in a new project involving display and analysis of dicom images. It did not fail me! Highly recommended.

An excellent choice - 2003-08-09
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
I really enjoyed this book. It covers two dimensional graphics very well. The code will challenge you. I like all books by Jonathan Knudsen. I think he is a good writer. If you a beginner, you might want to buy a primer on JAVA first before buying this book. I would recommend this book to anyone who wants to learn JAVA Graphics2D

Browse Similar Topics

Top Level Categories:
Graphics
Programming

Sub-Categories:
Graphics > Programming
Programming > Java

Some information on this page was provided using data from Amazon.com®. View at Amazon >


About Safari Books Online • Terms of Service • Privacy Policy • Contact Us • Corporate Licenses • Help • Accessibility | See us on FacebookSee us on Linked InSee us on TwitterRSS

Copyright 2010 Safari Books Online. All rights reserved.