Embossing an Image

The first button in Graphicizer is Emboss, which converts an image into an “embossed” image, making it look as though it were embossed on paper in a three-dimensional way. For example, you can see the results when the sample image (image.gif) that comes with the application is embossed in Figure 3.4.

Figure 3.4. Embossing an image.

To create an embossed image, Graphicizer has to get access to the individual pixels in the image. You can load these pixels into an array using the Java PixelGrabber class, which is what Graphicizer does. You can see the significant methods of the PixelGrabber class in Table 3.5.

Table 3.5. The Significant ...

Get Java™ After Hours: 10 Projects You'll Never Do at Work now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.