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.
| Field | Type and default | Meaning |
|---|---|---|
Base | DxfIO::Base | The handle, owner, reactors and extended data. |
Version | int | The version of the object, 0 as AutoCAD writes it. Group 90. |
File | std::string | The path of the image file. Group 1. |
Size | Vector{.X = 1, .Y = 1} | The width and height of the image, in pixels. Groups 10, 20. |
Pixel | Vector | The width and height of one pixel, in drawing units. Groups 11, 21. |
Loaded | int | 1 when the image is loaded, 0 when not. Group 280. |
Units | int | The 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.
| Field | Type and default | Meaning |
|---|---|---|
Base | DxfIO::Base | The handle, owner, reactors and extended data. |
Version | int{2} | The version of the object, 2 as AutoCAD writes it. Group 90. |
Image | Handle | The IMAGE entity. Group 330. |
struct RasterVariablesRASTERVARIABLES
A RASTERVARIABLES: how the drawing shows its raster images.
| Field | Type | Meaning |
|---|---|---|
Base | DxfIO::Base | The handle, owner, reactors and extended data. |
Version | int | The version of the object, 0 as AutoCAD writes it. Group 90. |
Frame | int | 1 to draw a frame around images, 0 not to. Group 70. |
Quality | int | The display quality: 0 draft, 1 high. Group 71. |
Units | int | The 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. |