Buy Used
Used - Acceptable See details
$4.48 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
Have one to sell? Sell yours here
Java 2D Graphics
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Java 2D Graphics [Paperback]

Jonathan Knudsen (Author)
4.3 out of 5 stars  See all reviews (11 customer reviews)


Available from these sellers.


Formats

Amazon Price New from Used from
Paperback --  
Like this book? Find similar titles from O'Reilly and Partners in our O'Reilly Bookstore.

Book Description

Java Series May 12, 1999

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


Editorial Reviews

Amazon.com Review

Java 2D Graphics is a remarkably accessible guide to graphics programming using Sun's new Java 2D API. Besides the basic navigation of the API, this title delivers plenty of useful advanced material for extending Java 2D's capabilities.

After a simple introductory example, the book focuses on the graphics architecture of Java 2D and its rendering pipeline. Support classes in Java 2D receive ample coverage as well, with sections outlining topics like storing points, shapes, and paths. For basic graphics output, the book demonstrates the simple--which can be found in the process of drawing common shapes like lines, ellipses, and rectangles--as well as the complex seen in modifying graphics output through translating, rescaling, rotating, or shearing.

Text output in Java 2D receives its due as well, since the book acknowledges Java 2D's advanced font capabilities that allow it to handle right-to-left languages such as Arabic. Further sections delve into Java 2D color models (including support for the CIEXYZ and sRGB color standards). Concerning the display of images, the book covers the built-in support for image filtering in Java 2D, which allows programmers to build toggles and fades into their code that alter brightness, contrast, blurring, and sharpening.

For advanced readers, Java 2D Graphics presents techniques like double buffering and matrix operations for custom image effects. Another expert section on the internal storage classes for image data will be useful for those who want to write image decoders. (A sample PNG decoder shows off the basics here.) Final sections look at printing, animation, and performance issues.

In all, Java 2D Graphics provides a fine introduction to the latest in 2-D graphics programming from Sun, in a title that will be useful to both beginning and advanced Java developers. --Richard Dragan

About the Author

Jonathan Knudsen is an author at O'Reilly & Associates. His books include The Unofficial Guide to Lego Mindstorms Robots, Java 2D Graphics, and Java Cryptography. He is the Courseware Writer for LearningPatterns.com.


Product Details

  • Paperback: 368 pages
  • Publisher: O'Reilly Media; 1st edition (May 12, 1999)
  • Language: English
  • ISBN-10: 1565924843
  • ISBN-13: 978-1565924840
  • Product Dimensions: 9.1 x 7 x 0.7 inches
  • Shipping Weight: 1.3 pounds
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (11 customer reviews)
  • Amazon Best Sellers Rank: #1,023,677 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

11 Reviews
5 star:
 (7)
4 star:
 (2)
3 star:    (0)
2 star:
 (2)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.3 out of 5 stars (11 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

11 of 11 people found the following review helpful:
5.0 out of 5 stars Excellent straight-forward book on 2D Graphics, August 7, 1999
By A Customer
This review is from: Java 2D Graphics (Paperback)
This is an excellent book on Java's 2D Graphics classes. It's both straight-forward and complete, and the author discusses topics with unique clarity. The author gives some background on graphics theory but always ties it to actual Java classes and the 2D Graphics framework. I kept saying things like, "Oh! That's what anti-aliasing means" and "Oh! That's what a 'raster' is." I highly recommend this book.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


10 of 11 people found the following review helpful:
5.0 out of 5 stars A handy reference to the Java 2D API, June 21, 1999
This review is from: Java 2D Graphics (Paperback)
This book picks up where Sun's documentation on the 2D API falls short. What it does well is describe the details of the API's classes and their methods, much like other OReilly books on Java. The book also has a few code examples, including some that demonstrate the use of Sun's JPEG classes that are not officially part of Java 2.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5 of 5 people found the following review helpful:
5.0 out of 5 stars Great book on the foundations of Java 2D, June 19, 2006
This review is from: Java 2D Graphics (Paperback)
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.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews









Only search this product's reviews



What Other Items Do Customers Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(3)
(2)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums



So You'd Like to...



Look for Similar Items by Category


Look for Similar Items by Subject