|
|
Manipulating and Displaying Images |
The immediate-mode imaging model enables you to manipulate and display pixel-mapped images whose data is stored in memory. You can access image data in a variety of formats and use several types of filtering operations to manipulate the data.
BufferedImageis the key class in the immediate-mode imaging API. It manages an image in memory and provides methods for storing, interpreting, and rendering the pixel data. ABufferedImagecan be rendered through either aGraphicsorGraphics2Drendering context.A
BufferedImageis essentially anImagewith an accessible data buffer. ABufferedImagehas aColorModeland aRasterof image data.The
ColorModelprovides a color interpretation of the image's pixel data. TheRasterrepresents the rectangular coordinates of the image, maintains image data in memory, and provides a mechanism for creating multiple subimages from a single image data buffer. TheRasteralso provides methods for accessing specific pixels within the image. For information about directly manipulating pixel data and writing filters forBufferedImageobjects, see the Imaging chapter in the Java 2D Programmer's Guide.
|
|
Manipulating and Displaying Images |