Using the OpenStep Desktop
只搜尋這本書
以 PDF 格式下載這本書

Working With Graphics

11

You can drag or paste graphic images into your pages in most OpenStep(TM) applications. You can preview how your pages will look before you print them. This chapter describes the following topics to help you work with graphics:
  • Adding a graphic image
  • Previewing pages
  • Previewing graphic images

Adding a Graphic Image

You can add a graphic image to documents such as Edit documents or Mail messages (see Figure 11-1 on page 11-2). The image may be a file in TIFF, EPS, or another graphics file format.
  1. Click in the document where you want the graphic image to appear.

  2. Drag the icon for the graphic file from the File Viewer into the document window.

If you add a graphic image to an Edit document that contains only text, the document is converted to an untitled RTFD file. (RTFD files are Edit file packages that contain rich text and one or more graphic images.)

圖形

Figure 11-1

If you want to add only part of a graphic image, you can use the commands in the Edit menu to copy what you want from the graphics document and paste it in the document where you want to add it.
You cannot modify the contents of graphic images you add to text documents. You can only move, copy, or delete them with the commands in the Edit menu.
For more information about file packages, see "File Packages--Files That Are Really Folders" on page 3-27.
You select graphic images you want to copy differently in different applications. For more information, see the user's guide for your application.

Graphics File Formats

Graphic images and the documents they are created in can be stored in a number of different formats. The most common are shown in Table 11-1.
Table 11-1
IconFormat
Internal bitmap(38x38)TIFF Tagged image file format is a format for single-page or smaller images. TIFF files typically include gray-scale or color halftones (such as photographs or shaded art) or screen images, as well as other kinds of art. TIFF files have a .tiff extension.
Internal bitmap(40x38)EPS Encapsulated PostScript is another format for single-page or smaller images. EPS files typically include black-and-white, gray-scale, or color text or line art (such as technical drawings), as well as other kinds of art. Unlike TIFF files, EPS files can look good at almost any scale or resolution. Many illustration applications create EPS files. EPS files have an .eps extension.
Internal bitmap(40x38)PS PostScript(TM) is a format for single- or multiple-page files. They can include the same kinds of information as EPS and TIFF files, but they also include information about how text and images are oriented on one or more pages. PS files can include fonts and printer-specific information for how they should be printed. As a rule, you cannot add PS files to your documents, but you can open them in Preview and print them. PS files have a .ps extension.
For more information, see "What Is a PostScript File?" on page 14-6.

Previewing Pages

You can preview your pages on screen before you print them, so you can see how they will look when you print them (see Figure 11-2 on page 11-4).
  1. Choose Print from your application's main menu and then click on Preview.

  2. Double-click on a PostScript (PS) file, if you have saved your pages in this format.

When you click on Preview or double-click on a PostScript file that has a .ps extension, the Preview application starts and displays the first page of the file in a window.

圖形

Figure 11-2

You can use the commands in the Display menu to switch pages, enlarge or reduce the scale of the pages in the window, and change how your pages are displayed in other ways.

Note - If you are having trouble previewing a file, start the Preview application in the /usr/openstep/Apps folder. Then try to open the file with the Open command in Preview's File menu, but click on Use Simple Mode in the Open panel before clicking on OK. Some of Preview's commands are not available in simple mode, but you can open a wider range of graphics files.

For more information about PostScript files and how to create them, see "Saving Your Pages as a PostScript File" on page 14-5.
For more information about the commands in the Display menu, see "Preview Commands" on page A-31.

Previewing Graphic Images

You can preview a graphic image in TIFF, EPS, and other graphics file formats to see how it will look when you add it to a document or print it (see Figure 11-3).
  1. Start up the Preview application by opening the /usr/openstep/apps folder and double-clicking on Preview.app.

  2. Choose File from the Preview menu.

  3. Choose Open from the File menu.

  4. Select a graphics file in the panel.

  5. Click on OK.

圖形

Figure 11-3

Use the Zoom In and Zoom Out commands in the Display menu to enlarge and reduce the image.
You can also use the Inspector command on the Workspace Manager menu to preview a graphic image. See "Previewing the Contents of a File" on page 7-3.