Table of Contents

Constructor DxfRasterImage

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

DxfRasterImage(DxfRasterImageDef)

Initializes an image made in code of a definition of a drawing, as AutoCAD's new RasterImage() given its ImageDefId: one unit a pixel, its corner at the origin, so that the picture of 4 by 3 pixels is (4, 0, 0) by (0, 3, 0) until it is placed by SetOrientation(GeoPoint3, GeoVector3, GeoVector3); shown and clipped by the whole picture (70 of 7, 280 of 0), its brightness and contrast 50 and its fade 0, as AutoCAD 2021 writes a new one. Appended to a block of the definition's drawing by AppendEntity(DxfEntity), it is given its IMAGEDEF_REACTOR there, as AutoCAD's AssociateRasterDef gives one, and counted by GetEntityCount(out bool).

public DxfRasterImage(DxfRasterImageDef imageDefinition)

Parameters

imageDefinition DxfRasterImageDef

The definition, of a drawing's dictionary of images.

Exceptions

ArgumentNullException

Thrown when the definition is null.

ArgumentException

Thrown when the definition is in no drawing, or erased.