Getting Started:

Demo
This non-interactive demo is the proverbial "Hello World" example program written using JAI. It reads and displays an image. It uses Java Swing components for labels, layout management, and display widgets. The tabs located at the bottom of the following page can be used to switch between the demo and the demo's source code.

JAI
The basic function used to create an image from a file is:


    PlanarImage source = JAI.create("fileload", file);

This function automatically determines the file format and produces an image object which can be displayed or processed.

Theory
JAI is fully integrated with other Java packages such as Swing and Java2D. This example illustrates the basic framework needed to load and display an image.