Formatting Graphics

After you create or insert a graphic object, Excel 2010 provides plenty of new and powerful tools you can use to modify it. Most of these tools are on hidden ribbon tabs that appear only when an object is selected. Three types of hidden tabs exist, depending on the object you select: SmartArt Tools, Drawing Tools, or Picture Tools appear on a menu bar above the new tabs. All three types include a Format tab; SmartArt Tools includes an additional tab, Design, which is discussed in Creating SmartArt on page 389. The controls available on the Format tab change depending on the type of object selected.

When you select an inserted picture or piece of clip art, you can use the Format tab under Picture Tools to make some rather extreme adjustments to the image. Although the source program that created an imported picture probably offers more options, you can do a surprising amount of formatting within Excel as well. All the basics are there, including tools for rotating and aligning images, adding borders, and cropping, but Excel now includes some surprisingly advanced formatting tools as well. Take a look at the largest group on the Format tab, Picture Styles, as shown in Figure 10-27.

As Figure 10-27 shows, simply resting the pointer on a thumbnail in the Picture Styles gallery temporarily displays the selected picture using that style. The same functionality applies to most other galleries available on the Format tab.

The Adjust group on the Format tab hides a powerful collection of menus that are new in Excel 2010. They replace the relatively pedestrian Brightness, Contrast, and Recolor commands and also offer a robust arsenal of special controls and artistic effects. It would be an understatement to say that the new Corrections menu, shown in Figure 10-28, replaces the old brightness and contrast controls. Having actual thumbnail representations gives you an immediate idea of where you need to go, rather than using the old Undo trial-and-error method.

The Brightness And Contrast thumbnail matrix displays 25 examples of the selected image in 0%, 20% and 40% applications of brightness and contrast, as well as 25% and 50% applications of sharpening. For more control, click Picture Corrections Options at the bottom of the gallery to display the dialog box shown in Figure 10-29.

image with no caption

The Format Picture dialog box controls pretty much everything you can do with pictures, including fill and line color, shadows, special effects, rotation, cropping, and sizing. Note that different picture types might cause some options to become active or disabled and could change the appearance of the dialog box itself.

Here is a quick rundown of the categories available in the Format Picture dialog box and what they do. Note that if there is a corresponding menu or gallery on the ribbon, its options are duplicated here as well:

Color is the next command in the Adjust group on the Picture Tools Format tab. It displays the gallery shown in Figure 10-30.

Clicking the Remove Background button in the Picture Tools Format tab’s Adjust group displays the Background Removal tab, shown in Figure 10-31, which normally remains hidden.

When you first click the Remove Background button, the image appears with selection handles inside its frame and, as Figure 10-31 shows, shaded areas that represent areas specified for removal. The selection handles indicate where the image will be cropped. The shaded areas are selected around the periphery of the image and are based on predominant, common, adjacent colors and—to some extent—lines and textures. You can drag the selection handles to include more or less of the image in the result, and the shaded areas might change when you do this. If the automatic selection doesn’t quite get it right, you can use the Mark Areas To Keep and Mark Areas To Remove buttons, which do pretty much what they indicate. When you mark an area, you might find that an area has a lot more colors than it appeared to at first, so trial and error is helpful here. The Undo and Redo buttons work beautifully. In Figure 10-31, we simply dragged the selection rectangle to include the entire rock outcropping, and the automatic background selection algorithms worked pretty well for this image.

The remaining menu in the Picture Tools Format tab’s Adjust group is Artistic Effects, which includes a number of textures, screens, and various other types of distortions and manipulations. The very nice Pencil Grayscale effect is shown in Figure 10-32.

image with no caption
image with no caption

The second of the three buttons on the right side of the Picture Tools Format tab’s Adjust group, Change Picture, allows you to swap the underlying image with another one by opening a version of the Open dialog box. When you use Change Image, any formatting you have applied is not affected. The new image simply appears in place with all the same options applied. The last button on the right side of the Picture Tools Format tab’s Adjust group, Reset Picture, does exactly what you think—reverts the image to its original inserted condition. The first button in this group of three—Compress Pictures—is discussed in Applying Compression to Pictures on page 411.

When you select any type of object other than pictures or embedded objects, the Format tab under Drawing Tools appears, containing controls similar to ones on the Format tab under Picture Tools and a couple of new ones, too, as you can see in Figure 10-33.

Here are details about the formatting controls on the Format tab under Drawing Tools that are different from those on the Format tab under Picture Tools:

When you select a SmartArt graphic, the Format tab under SmartArt Tools appears, containing controls similar to the two other versions of the Format tab (Picture Tools and Drawing Tools) and a few new ones, as you can see in Figure 10-35.

image with no caption
image with no caption
image with no caption

The Edit In 2-D button in the Shapes group allows you to “flatten” a selected object with 3-D formatting applied. This does not eliminate 3-D formatting, it just suspends it and speeds up the redrawing of the object. The Larger and Smaller buttons are used to scale individually selected objects in a group by a preset amount, which is more precise than dragging selection handles and makes it easier to scale multiple objects by identical amounts.

image with no caption

On this version of the Format tab, the Arrange button is a menu with some familiar controls—Align, Group, Rotate, Bring Forward, and Send Backward—and one unfamiliar one, Selection Pane. Clicking the latter button opens a task pane with a list of all the objects on the worksheet. Clicking an item in the list selects the corresponding object. If you are working with multiple objects, especially if they are in close proximity or stacked, using the selection pane can be very handy. For more information about the selection pane, see Working with Graphic Objects on page 421.

Most of what you can do with text in cells applies to text in graphics as well. You can use the tools in the Font group on the Home tab to accomplish most of what you need to do in either cells or text-capable objects. You can also apply the advanced formatting options available in the WordArt Styles group on the Format tab that appears when an object is selected. However, you can employ a few additional text-formatting options using the Font dialog box when working with text in objects.

To see what we’re talking about, click Shapes on the Insert tab, draw any kind of two-dimensional object, such as a rectangle, and then type some text. Drag through the text you just typed to select it, then right-click the selected text, and finally click Font to display the Font dialog box, shown in Figure 10-36.

The Font dialog box shares many of the same controls found in the Format Cells dialog box that you use to format text in cells. The Font dialog box additionally offers the following options, several of which are illustrated in Figure 10-36:

In Figure 10-37, the first text box is formatted as usual; kerning was applied to the second text box. The effect is subtle, but you can see that the spacing between each letter pair in the second box is a little tighter. Kerning is particularly noticeable when applied to large display fonts and logos.

Note

Chapter 9 discusses the overall formatting features of Excel 2010; we discuss text formatting in depth in Using Fonts on page 351.

image with no caption

When you import pictures using the Picture button on the Insert tab, you can choose to optimize the storage of these images on your worksheets to decrease the amount of disk space they consume. Clicking the Compress Pictures button on the Format tab under Picture Tools (which appears only when a picture is selected) displays a dialog box of the same name, shown in Figure 10-38.

Here are details about the options in the Compress Pictures dialog box:

Most of the formatting controls you need for graphics are right up front on the ribbon—the “dashboard” of Excel. The ribbon offers easy access to buttons and galleries as well as live preview functionality. However, a few additional options are not available on the ribbon. To access them, right-click any graphic (except an embedded object), and click Format Shape to display the Format Shape dialog box. The command and dialog box name is Format Picture when you select clip art or an inserted picture, but the dialog box is the same either way. See A Dialog Apart on page 402, for more information.

You might find the Format Shape dialog box convenient because you can leave it open and move it out of the way while you work. The categories on the left side of the Format Shape dialog box are always the same, no matter what type of object you select. However, the options available in each category change based on the object type. For example, the settings in the Text Box category are unavailable when you select a picture.

Much of what you find in the Format Shape dialog box is self-explanatory, but we’ll hit the high points for you in the following sections, which also serve to describe some of the inner workings of equivalent ribbon-based controls.

The first two categories in the Format Shape dialog box, Fill and Line Color, contain options that change the controls displayed in the dialog box, as shown in Figure 10-39. For example, you can see the differences between the controls available when the Gradient Fill and Picture Or Texture Fill options are selected. (Curiously, as the figure shows, the name of the dialog box also changes if you select a nonpicture object and choose Picture Or Texture Fill.) As always, any changes you make in the dialog box are reflected immediately in the selected object:

Click the 3-D Format category in the Format Shape dialog box to apply three-dimensional effects to the selected shape. If you apply one of the Bevel presets, several formats are applied to the selected object: color and amount of depth and contour, surface type, and lighting type. In Figure 10-41, we created a shape and applied the Convex preset from the Top drop-down list.

With the controls in the 3-D Rotation category, you can control the attitude of the selected shape in all three dimensions. We’ll describe the controls in the two 3-D categories in the Format Shape dialog box in detail.

Besides objects you create with the Text Box button on the Insert tab, many of the objects you can create in Excel are de facto text boxes. Figure 10-43 shows two objects, one created with the Text Box tool and another created with one of the Star tools in the Shapes gallery. Both objects are subject to the influence of the Text Box controls in the Format Shape dialog box, as are most two-dimensional shapes and even WordArt and SmartArt objects.

image with no caption
image with no caption

The Text Layout controls perform some of the same tasks as the buttons in the Alignment group on the Home tab of the ribbon. You can see in Figure 10-43 that both the Middle Align and Center buttons on the ribbon are highlighted, indicating that the selected objects have those attributes applied. The corresponding setting in the Vertical Alignment category in the dialog box is also selected.

The Allow Text To Overflow Shape option is normally selected; if you clear this option, text too large to fit the shape is truncated. If you select the Resize Shape To Fit Text check box, the object shrinks (or expands) to fit the text it contains as it’s typed and formatted. The Internal Margin settings add or decrease the amount of space between the edge of a shape and the text it contains. The Columns button displays a dialog box you can use to create columns of text within any text-capable object, as shown in Figure 10-44.

As mentioned earlier in this chapter, objects you create using the Object button on the Insert tab cannot be formatted using the Format Shape dialog box you have now become familiar with. Objects inserted this way are called embedded objects, and they do not cause additional formatting tabs to appear on the ribbon when you select them. To apply formatting to an embedded object, you must right-click it and then click the Format Object command (or Format Picture, depending on the object type). When you do so, a dialog box like the one shown in Figure 10-45 appears. Depending on the type of object selected, some of the options available in this dialog box have no effect.

In Figure 10-45, we used the Colors And Lines tab in the Format Object dialog box to apply a gradient fill to an embedded Microsoft Equation Editor object and added 75 percent transparency and a 3-point border. In general, the options available in this dialog box are self-explanatory and similar to options found elsewhere.