O'Reilly logo

Learn JavaFX 8: Building User Experience and Interfaces with Java 8 by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 24

image

Understanding the Image API

In this chapter, you will learn:

  • What the Image API is
  • How to load an image
  • How to view an image in an ImageView node
  • How to perform image operations such as reading/writing pixels, creating an image from scratch, and saving the image to the file system
  • How to take the snapshot of nodes and scenes

What Is the Image API?

JavaFX provides the Image API that lets you load and display images, and read/write raw image pixels. A class diagram for the classes in the image API is shown in Figure 24-1. All classes are in the javafx.scene.image package. The API lets you

  • Load an image in memory
  • Display an image as a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required