epubjs
Version:
Render ePub documents in the browser, across many devices
15 lines (14 loc) • 1.51 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Chapter 20. Drawing with the 2D API</title><link rel="stylesheet" href="core.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"/></head><body><div class="chapter" title="Chapter 20. Drawing with the 2D API"><div class="titlepage"><div><div><h1 class="title"><a id="learnjava3-CHP-20"/>Chapter 20. Drawing with the 2D API</h1></div></div></div><p>In previous chapters, we looked at the components and component
architecture of graphical user interfaces (GUIs) using Java’s Swing and AWT
packages. Now, we’re going to drop down a level and look at the procedural
APIs for rendering graphics in Java applications. These APIs are used by
components to paint themselves on the screen and to display icons and
graphics. As of Java 7, Java2D is hardware-accelerated on all major
platforms, so well-constructed Java clients should enjoy performance similar
to native applications.</p><p>This chapter goes into some detail about Java’s sophisticated 2D,
resolution-independent drawing API and the core tools for loading and
displaying images. In the next chapter, we’ll explore dynamic
image-processing tools in more detail and look at the classes that allow you
to generate and modify image data, pixel by pixel.</p></div></body></html>