bitmaps and vectorsThere are two digital image types: bitmaps and vectors. Bitmap images are the most common type of image file outside the professional print world. Bitmap files map out or plot the image on a pixel-by-pixel basis. Computer displays are made up of a collection of individual points or dots, called pixels, organized in columns and rows (similar to a table or a grid) where each cell represents each pixel in the image. The bitmap image file basically plots each pixel, such as pixel 300 wide by 250 high is red. Pixel 301 wide by 250 high is also red. Pixel 302 wide by 250 high is yellow and so on. Because bandwidth is a major concern when developing web sites, keeping the size of images to a minimum is very important. The main benefit of bitmap images is photographic color, tone, and texture is accurately produced.
If you were to plot a bitmap on a grid, each pixel is detailed. Essentially, this is what your computer does when it displays bitmaps.

Vector images do not plot images on a pixel-by-pixel basis. Instead, vector files contain a description of the image expressed mathematically. Essentially, the file tells the computer about the image and the computer draws it. For instance, the image of a circle in vector format, written in plain English, might look something like this:
Circle (200px)
Fill Color: Gradient
Gradient Type: Radial
Colors: White, Black
Line Color: None
One of the benefits of vector images is file size, particularly relative to the file size of bitmap images. The same circle as a bitmap file, at a resolution of 320x200, might look something like this in English:
Row 1
Pixel 1x1 is white
Pixel 2x1 is white
Pixel 3x1 is white
Pixel 4x1 is white, etc. until we reach Pixel 320x1
Row 2
Pixel 1x2 is white
Pixel 2x2 is white, etc.
Describing the circle (and the color surrounding it) on a pixel-by-pixel basis is a much more lengthy process than telling the computer to draw the circle itself.
Another major benefit of vector graphics is scalability. Because the computer effectively draws the image for us, vector graphics are also scalable; meaning the size of the image can be increased or decreased without degradation. Because the file is an equation, placing different numbers into the equation results in the computer rendering the image correctly, but if you only modify the scale , the file size remains the same.
Scaling vectors results in perfectly rendered images. The image on the left is the ball in its original size. The image on the right is the same ball with an increase in scale . The file size is the same.
Bitmaps can be scaled, but an increase in scale degrades the image because the computer does not have enough information to create the new image. The computer merely takes the existing pixel information and translates one pixel into multiple pixels. For example, if we scale a 45x45 image to 90x90, each individual pixel in the image in its original state becomes four (4) pixels in its scaled state. This results in jagged edges that appear fuzzy on screen
Doubling the size of the bitmap causes the computer to replace each original pixel with four. As a result, the image becomes fuzzy or jagged. The file size also increases.Unfortunately, vector images, because they describe images in terms of shapes, lines, curves, points, colors, length, etc., do not accurately reproduce photographic images. In general, bitmaps are suitable for photographic images, and vectors for illustrations.

The bitmap image does a much better job with photographic images then the vector image, which tends to use patterns of solid colors resembling traditional illustrations.
The core image technology in Photoshop is bitmap based, but with version 6, Photoshop does use vectors for a variety of editing tasks.
Internet Image StanderedIn addition to two types of digital images (bitmaps and vectors), there are also a variety of bitmap and vector file types. Bitmap files, at the most basic level, are just as described - a map or plot of each individual pixel. However, image files can (and often do) contain other information - depending on their use. For instance, the author or creator of the image might be included, as well as the date and copyright information. In addition, because bitmaps tend to be large, various methods of compression or methods to reduce file size have been developed.
To designate extra information and compression methods, different file types have been developed. File types designate a particular variety of bitmap or vector. Windows and Unix operating systems idenpsdy the file type by adding a period followed by three letters to the end of the filename, as in “circle.gif” or “circle.jpg.” This is called a file extension. On the Macintosh (before OS X) file extensions are not used to designate file types. A file designating the file type and the application that created it is attached to the image file instead. However, Web servers and browsers also use file type extensions, so it’s advisable that Macintosh users do the same for image files generated for the web.
Web browsers currently support three image file types. They are .gif, or Graphics Interchange Format (GIF), .jpg or Joint Photographic Experts Group (JPEG), and .png or Portable Network Graphics (PNG). Each of these formats is a bitmap file. Currently, browsers do not support the display of vector-based images without a plugin.
Each of the file types for the Internet, and the appropriate use, are discussed in a later chapter.
Photoshop can import a variety of bitmap and vector formats. Importing external image files is covered later in the book. Photoshop’s native file format is called Photoshop Document. The extension is .psd.