80 likes | 185 Views
Working Graphics. Lecture Overview. Formatting Text Understanding whitespace. A Graphics Primer. There are several types of graphical files Some work on the Web better than others We could spend quite a bit of time talking about images and their characteristics
E N D
Lecture Overview • Formatting Text • Understanding whitespace
A Graphics Primer • There are several types of graphical files • Some work on the Web better than others • We could spend quite a bit of time talking about images and their characteristics • My discussion is quite cursory
Graphics (Characteristics 1) • Images have various characteristics that affect performance • Size (number of pixels) – Large images can be several megabytes • Color (bits per pixel) – The more colors, the larger the image • Compression – Algorithms exist to compress images without any loss of fidelity
Graphics (Characteristics 2) • Interlacing – loads and renders alternating lines to improve perceived performance
Image Maps (Introduction) • Simply put, they allow you to create links to other Web pages using images • Different links are visited depending on where in the image the user clicked • These regions are called hot zones
Image Maps (Creating) • Use the <img> element • The <src> element contains the name of the image file • The usemap attribute contains a bookmark • The <map> element contains multiple <area> elements • <area> elements define the shape and the link visited when the area is clicked
Image Maps (Best Practices) • They are a pain to create by hand • You really need a tool to create these easily • See http://www.recreation.gov/browseMapsRecGov.do?topTabIndex=CampgroundMap