Images are 2D arrangements of pixels used to represent the kinds of displayable “pictures” found in computers, such as digital photos, desktop backgrounds, icons, and graphical Web page content. In this chapter, we investigate the support that SWT provides for reading, writing, manipulating, and displaying images.
As was true with the color and font support, two main classes are used to represent images within SWT: one to represent the image in a device-independent fashion (class ImageData) and one to represent it in a form suitable for display on a particular device (class Image).