Sams Teach Yourself HTML 4 in 24 Hours

Sams Teach Yourself HTML 4 in 24 Hours

By Dick Oliver

Creating Your Own Backgrounds

Any GIF or JPEG image can be used as a background tile. Pages look best, however, when the top edge of a background tile matches seamlessly with the bottom edge, and the left edge matches with the right.

If you're clever and have some time to spend on it, you can turn any image into a seamless tile by meticulously cutting and pasting, while touching up the edges. Paint Shop Pro provides a much easier way to automatically make any texture into a seamless tile: Simply use the rectangular selection tool to choose the area you want to make into a tile, and then choose Selections, Convert to Seamless Pattern. Paint Shop Pro crops the image and uses a sophisticated automatic procedure to overlay and blur together opposite sides of the image.

In Figure 11.7 I did this with part of an image of the planet Jupiter, taken from a NASA image archive. The resulting tile—shown as the background of a Web page in Figure 11.8—tiles seamlessly, but has the tone and texture of the eye of Jove himself.

11fig07.jpg

Figure 11.7 Paint Shop Pro can automatically take any region of an image and turn it into a background pattern that can be easily made into tiles.

11fig08.jpg

Figure 11.8 These are the results of using an area of the image in Figure 11.7 as a background image for a Web page.

You'll find similar features in other graphics programs, including Photoshop (use Filter, Other, Offset with Wrap Turned On), Kai's Power Tools, and the Macintosh programs Mordant and Tilery.

Todo To Do

Here are some tips for making your own background tiles with Paint Shop Pro:

Share ThisShare This

Informit Network