Drawings SDK Developer Guide > Working with .dwg Files > Working with Entities > Working with Specific Entitites > Working with Raster Images > Overview of Raster Images
Overview of Raster Images

The OdDbRasterImage and OdDbRasterImageDef classes are used to insert a picture from an external raster file. OdDbRasterImage entities reside in model or paper space of a drawing. They specify the position and orientation of the image, brightness, clipping boundary, and other properties. Each OdDbRasterImage entity references a single OdDbRasterImageDef (definition) object such as a block reference entities and reference block definitions. OdDbRasterImagedef objects reside in a special dictionary named ACAD_IMAGE_DICT. Each OdDbRasterImage entity must have a reference to an OdDbRasterImageDef object.

OdDbRasterImagedef objects store the source raster file name, size in pixels, and other properties. The same raster definition object can be referenced by multiple raster entities.

To create and initialize a new instance of a raster image entity, see Overview of Specific Entities.

See Also

Working with Raster Images

Copyright © 2002 – 2021. Open Design Alliance. All rights reserved.