Objects

objects/image/definition

#include "dxfio/objects/image/definition.hpp"

In DxfIO::Objects

struct ImageDefIMAGEDEF

An IMAGEDEF: a raster image file the drawing's IMAGE entities show.

FieldType and defaultMeaning
BaseDxfIO::BaseThe handle, owner, reactors and extended data.
VersionintThe version of the object, 0 as AutoCAD writes it. Group 90.
Filestd::stringThe path of the image file. Group 1.
SizeVector{.X = 1, .Y = 1}The width and height of the image, in pixels. Groups 10, 20.
PixelVectorThe width and height of one pixel, in drawing units. Groups 11, 21.
Loadedint1 when the image is loaded, 0 when not. Group 280.
UnitsintThe units Pixel is in: 0 none, 2 centimeters, 5 inches. Group 281.

struct ImageDefReactorIMAGEDEF_REACTOR

An IMAGEDEF_REACTOR: the link from an image definition back to an IMAGE entity that shows it.

FieldType and defaultMeaning
BaseDxfIO::BaseThe handle, owner, reactors and extended data.
Versionint{2}The version of the object, 2 as AutoCAD writes it. Group 90.
ImageHandleThe IMAGE entity. Group 330.

struct RasterVariablesRASTERVARIABLES

A RASTERVARIABLES: how the drawing shows its raster images.

FieldTypeMeaning
BaseDxfIO::BaseThe handle, owner, reactors and extended data.
VersionintThe version of the object, 0 as AutoCAD writes it. Group 90.
Frameint1 to draw a frame around images, 0 not to. Group 70.
QualityintThe display quality: 0 draft, 1 high. Group 71.
UnitsintThe units images are inserted in: 0 none, 1 millimeters, 2 centimeters, 3 meters, 4 kilometers, 5 inches, 6 feet, 7 yards, 8 miles. Group 72.