Java 2D Graphics

Front Cover
O'Reilly, 1999 - Computers - 339 pages
2 Reviews

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 Graphicsdescribes 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 Graphicsassumes 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

From inside the book

What people are saying - Write a review

LibraryThing Review

User Review  - tjd - LibraryThing

For me, a graphics novice, this was a very useful book. It explained the essentials of Java graphics clearly and straighforwardly. Alas, like a lot of older Java books, it is dated, and there are better ways to do many of the things discussed in the book. Read full review

Contents

II
1
V
2
VI
5
Copyright

61 other sections not shown

Common terms and phrases

References to this book

All Book Search results »

About the author (1999)

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.

Bibliographic information