Mastering the Raster

9:17 AM Posted In , , , , , , , , , , , , , , Edit This 0 Comments »

AutoCAD includes another xref-like feature: the ability to attach raster images to drawings. This feature is useful for adding a raster logo to a drawing title block or placing a photographed map or scene behind a drawing. A raster, or bitmapped, image is one that’s stored as a field of tiny points.

Most AutoCAD drawings are vector images. A vector image is an image defined by storing geometrical definitions of a bunch of objects. Typical objects include a line, defined by its two endpoints, and a circle, defined by its center point and radius. Vector-based images are typically smaller (in terms of the disk space they occupy) and more flexible than raster images, but also are less capable of displaying visually rich images such as photographs.

Raster images normally come into the computer from some kind of scanner that imports a blueline print, photograph, or other image. Raster images, such as company logos, can also be created in programs such as Photoshop.

Whether you’re doing your scanning yourself or having a service bureau do it for you, you need to know that AutoCAD handles most of the popular image file formats including the Windows BMP format, the popular Web graphics formats GIF and JPEG, the popular PCX and TIFF formats, as well as DIB, FLC, FLI, GP4, MIL, PNG, RLE, RST, and TGA.

Here are three scenarios to incorporate raster images in your drawing:

  • Small stuff: You can add logos, special symbols, and other small images that you have in raster files.

  • Photographs and maps: You can add photographs (such as a future building site) and maps (for example, showing the project location).

  • Vectorization: To convert a raster image into a vector drawing by tracing lines in the raster image, you can attach the raster image in your drawing, trace the needed lines using AutoCAD commands, then detach the raster image. (This procedure is okay for a simple raster image; add-on software is available, from Autodesk and others, to support vectorization of more complex images.)

Using raster images is much like using external references. The raster image isn’t stored with your drawing file; a reference to the raster image file is established from within your drawing, like an xref. You can clip the image and control its size, brightness, contrast, fade, and transparency. These controls fine-tune the appearance of the raster image on-screen and on a plot.

Warning When you attach raster images, you have to make sure that you send the raster files along when you send your drawing to someone else.

AutoCAD LT AutoCAD LT can open, view, and plot drawings containing attached raster images, but LT can’t do the attaching. Raster masters require full AutoCAD.

Attaching an image

Follow these steps to bring a raster image into AutoCAD:

  1. Choose InsertðImage Manager from the menu bar or type IMage at the command line to start the IMage command.

  2. Click the Attach button.

    The Select Image File dialog box appears.

  3. Browse to find the file you want to attach, select it, then click Open.

    The Image dialog box appears.

    Tip Click the Details button in the Image dialog box to see more information about the resolution and image size of the image you’re attaching.

  4. Specify the parameters for the attached image in the dialog box.

    Parameters include the insertion point, scale factor, and rotation angle. You can set these parameters in the dialog box or specify them on-screen, similar to what you can do with blocks and external references, as described earlier in this chapter. Use the quick dialog box help (click the question mark in the dialog box’s title bar and then click the area in the dialog box for which you want help) or click the dialog box’s Help button to find out more about specific options.

    Warning Unfortunately, Autodesk didn’t add a Relative path option to raster images in AutoCAD 2004, as it did for xrefs. (See "Forging an xref path" earlier in this chapter.) Use the Retain path setting to choose between storing the entire path or no path. Retain path on corresponds to Full path, and off corresponds to No path.

  5. Click OK.

    The image appears in your drawing.

  6. If you need to ensure that the raster image floats behind other objects in the drawing, select the raster image and then choose ToolsðDisplay OrderðSend to Back.

    Technical Stuff The DRaworder command provides additional options for which objects appear on top of which other objects. If you need this kind of flexibility, look up “DRAWORDER command” in the AutoCAD online help system.

Managing images

You manage the images in your drawing with the Image Manager dialog box. It includes virtually the same options as the External References dialog box. Options include image files that appear in the current drawing, the ability to detach (remove) image references, and the ability to unload and reload images when needed. You can’t bind an image to your drawing; it’s an external file.

You can clip images so that only part of the image is displayed in your drawing. Choose ModifyðClipðImage and follow the prompts to clip the image. You can have multiple overlapping or distinct pieces of any number of images in your drawing, and only the parts you need are loaded into memory when you have your drawing open.

Tip Raster image files can be larger than DWG files; size can affect performance within AutoCAD, because the raster file loads into memory when you are working on your drawing. Some workarounds speed up operations:

  • Attach raster images late in the production process.

  • Create a lower-resolution version of the raster file, just large enough to create the desired effect in your drawing.

  • Use the Unload button in the Image Manager dialog box to temporarily disable an image without losing the attachment information.

0 comments: