Chapter 7, vector graphics (AutoShapes, for example) are created with mathematical formulas. Some of the advantages of vector graphics are their small file size and the fact that they can be resized without losing any quality. The main disadvantage to a vector graphic is that it doesn''t look "real." Even when an expert artist draws a vector graphic, you can still tell that it''s a drawing, not a photograph. For example, perhaps you''ve seen the game The Sims? Those characters and objects are 3-D vector graphics. They look pretty good, but there''s no way you would mistake them for real people and objects.
In this chapter, we''ll be working with raster graphics. A raster graphic is made up of a very fine grid of individual colored pixels (dots). The grid is sometimes called a bitmap. Each pixel has a unique numeric value representing its color. Figure 8-1 shows a close-up of a raster image. You can create raster graphics from scratch with a "paint" program on a computer, but a more common way to acquire a raster graphic is by using a scanner or digital camera as an input device.
Figure 8-1: A raster graphic, normal size (right) and zoomed in to show individual pixels (left).
Note | The term bitmap is sometimes used to refer generically to any raster graphic, but it is also a specific file format for raster graphics, with a BMP extension. This is the default file format for the Paint program that comes with Windows and for Windows desktop wallpaper. |
Because there are so many individual pixels and each one must be represented numerically, raster graphics are much larger than vector graphics. They take longer to load into the PC''s memory, take up more space when stored as separate files on disk, and make your PowerPoint presentation file much larger. A raster graphic can be compressed so that it takes up less space on disk, but the quality may suffer. Therefore, it''s best to use vector graphics when you want simple lines, shapes, or cartoons and reserve raster graphics for situations where you need photographic quality.
The following sections explain some of the technical specifications behind raster graphics; you''ll need this information to make the right decisions about the way you capture the images with your scanner or digital camera and the way you use them in PowerPoint.
Resolution
The term resolution has two subtly different meanings. One is the size of an image, expressed in the number of pixels of width and height, such as 800 × 600. The other meaning is the number of pixels per inch when the image is printed, such as 100 dots per inch (dpi). The former meaning is used mostly when referring to images of a fixed physical size, such as the display resolution of a monitor. In this book I''ll mostly be referring to the latter meaning.
If you know the resolution of the picture (that is, the number of pixels in it), and the resolution of the printer on which it is to be printed (for example, 300 dpi), you can figure out how large the picture will be in inches when you print it. Suppose you have a picture that is 900 pixels square, and you print it on a 300 dpi printer. It will be three inches square on the printout.
RESOLUTION ON PREEXISTING GRAPHICS files
When you acquire an image file from an outside source, such as downloading it from a Web site or getting it from a CD of artwork, its resolution has already been determined. Whoever created the file originally made that decision. For example, if the image was originally scanned on a scanner, whoever scanned it chose the scan resolution-that is, the dpi setting. That determined how many individual pixels each inch of the original picture would be carved up into. At a 100 dpi scan, each inch of the picture is represented by 100 pixels vertically and horizontally. At 300 dpi, each inch of the picture is broken down into three times that many.
You can modify the picture in an image-editing program to change the number of dots per inch by resizing the image (see Compressing Images later in this chapter), and/or you can crop off one or more sides of the image.
Caution | If you crop or decrease the size of an image in an image-editing program, save the changes under a different file name. Maintain the original in case you ever need it for some other purpose. Decreasing the image resolution decreases its dpi setting, which decreases its quality. You might not notice any quality degradation on-screen, but you will probably notice when printing it at a large size. That''s because the average monitor displays only 96 dpi, but the average printer prints at 600 dpi or higher. PowerPoint slides do not usually need to be printed at a professional-quality resolution, so image quality on a PowerPoint printout is not usually an issue. However, if you use the picture for something else later, such as printing it as a full-page color image on photo paper, a high dpi file can make a difference. |
RESOLUTION ON GRAPHICS YOU SCAN YOURSELF
When you create an image file yourself by using a scanner, you choose the resolution, expressed in dots per inch (dpi), through the scanner software. For example, suppose you are scanning a 4-inch by 6-inch photo. If you scan it at 100 dpi, the scanner will break down each 1-inch section of the photo (horizontally and vertically) into 100 separate pieces and decide on a numeric value that best represents the color of each piece. The result will be a total number of pixels of 4 × 100 × 6 × 100, or 240,000 pixels. Assuming that each pixel requires 3 bytes of storage, the file will be approximately 720K in size. (The actual size will vary slightly depending on the file format.)
Now, suppose you scan the same photo at 200 dpi. The scanner will break down each 1-inch section of the photo into 200 pieces, so that the result will be 4 × 200 × 6 × 200 or 960,000 pixels. Assuming again that one pixel requires 3 bytes for storage, the file will be approximately 2.9MB in size. A big difference!
The higher the resolution in which you scan, the larger the file will be, but also the finer the detail of the scan. However, unless you are zooming in on the photo, you will not be able to tell a difference between 100 dpi and a higher resolution. That''s because most computer monitors display at 96 dpi, so any resolution higher than that will not improve the output.
Let''s look at an example. In Figure 8-2, you can see two copies of an image open in a graphics program. The same photo was scanned at 75 dots per inch (left) and 150 dots per inch (right). However, the difference between them is not significant when the two images are placed on a PowerPoint slide, as shown in Figure 8-3. The lower resolution image is at the top left, but there is no observable difference at the size at which they are being used.
Figure 8-2: At high magnification, the difference in dpi for a scan is apparent.
Figure 8-3: When the image is used at normal size, there is virtually no difference between a high-dpi and a low-dpi scan.
RESOLUTION ON DIGITAL CAMERA PHOTOS
Top-quality digital cameras today take very high-resolution pictures, much higher than you will need for an on-screen PowerPoint presentation. At normal size and magnification, a high-resolution graphic file is overkill; it wastes disk space needlessly. Therefore, you may want to adjust the camera''s image size so that it takes lower-resolution pictures for your PowerPoint show.
If you think you might want to use those same pictures for some other purpose in the future, such as printing in a magazine or newsletter, then go ahead and take them with the camera''s highest setting, but you should compress them in PowerPoint or resize them in a third-party image-editing program. See Compressing Images later in this chapter to learn how.
Color Depth
Color depth is the number of bits required to describe the color of a single pixel in the image. For example, in 1-bit color, a single binary digit represents each pixel. Each pixel is either black (1) or white (0). In 4-bit color, there are 16 possible colors because there are 16 possible combinations of 1s and 0s in a four-digit binary number. In 8-bit color there are 256 combinations.
For most file formats, the highest number of colors you can have in an image is 16.7 million colors, which is 24-bit color (also called "true color"). It uses 8 bits each for Red, Green, and Blue.
There is also 32-bit color, which has the same number of colors as 24-bit but adds 8 more bits for an Alpha Channel. The Alpha Channel is used to describe the amount of transparency for each pixel. This is not so much an issue for a single-layer graphic, but in a multi-layer graphic, such as you can create in high-end graphics programs like Photoshop, the extent to which a lower layer shows through an upper one is important.
Tip | Here''s a great article on alpha channel usage in PowerPoint by Geetesh Bajaj: www.indezine.com/products/powerpoint/ppalphal. |
Scanners and Color Depth
If you are shopping for a scanner you will probably notice that they''re advertised with higher numbers of bits than the graphics formats will support. This is for error correction. If there are extra bits, it can throw out the bad bits to account for "noise" and still end up with a full set of good bits. (Error correction in a scan is a rather complicated process, but fortunately your scanner driver software takes care of it for you.)
48-bit color is fairly new, and it''s just like 24-bit color except it uses 16 rather than 8 bits to define each of the three channels: Red, Green, and Blue. It does not have an Alpha Channel bit. 48-bit color depth is not really necessary, as the human eye cannot detect the small differences it introduces. Of the graphics formats that PowerPoint supports, only PNG supports 48-bit color depth.
The higher the color depth, the larger the file size of the image. Photos look best when they are used at a color depth of 16-bit or higher; an 8-bit photo is noticeably less realistic. Most scanners and digital cameras produce images automatically at their maximum color depth.
I normally would not decrease the color depth of a photo to less than 24-bit unless there was an issue with lack of disk space that could not be solved any other way. To decrease the color depth you would need to open the graphic file in a third-party image-editing program, and use the command in that program for decreasing the number of colors. Before going through that, try compressing the images in the presentation (see Compressing Images later in the chapter) to see if that doesn''t solve the problem.
File Format
Many scanners scan in JPEG format by default, but most will also support TIF format too, and some support other formats as well. Images you acquire from a digital camera will almost always be JPEG. Images from other sources may be any of dozens of graphic formats, including PCX, BMP, GIF, or PNG.
Different graphic formats can vary tremendously in the size and quality of the image they produce. The main differentiators between formats are the color depth they support and the type of compression they use (which determines the file size).
Remember, earlier how I explained that each pixel in a 24-bit color image requires 3 bytes? (That''s derived by dividing 24 by 8 because there are 8 bits in a byte.) Then you multiply that by the height, and then by the width, to determine the image size? Well, that formula was not quite accurate because it does not take compression into account. Compression is an algorithm (basically a math formula) that decreases the amount of space that the file takes up on the disk by storing the data about the pixels more compactly. A file format will have one of these three states in regard to compression:
No compression: The image is not compressed.
Lossless compression: The image is compressed, but the algorithm for doing so does not throw out any pixels so there is no loss of image quality when the image is resized.
Lossy compression: The image is compressed by recording less data about the pixels, such that when the image is resized there may be a loss of image quality.
Table 8-1 provides a brief guide to some of the most common graphics formats. Generally speaking, for most on-screen presentations JPEG should be your preferred choice for graphics because it is compact and Web-accessible (although PNG is also a good choice and uses lossless compression).
Tip | If you are not sure what format you will eventually use for an image, scan it in TIF format and keep the TIF copy on your hard disk. You can always save a copy in JPEG or other formats when you need them for specific projects. TIF format''s compression is lossless, so it results in a high-quality image. |