ImageDef

IMAGEDEF entity defines an image file, which can be placed by the Image entity.

Subclass of ezdxf.entities.DXFObject
DXF type 'IMAGEDEF'
Factory function (1) ezdxf.document.Drawing.add_image_def()
Factory function (2) ezdxf.sections.objects.ObjectsSection.add_image_def()

Warning

Do not instantiate object classes by yourself - always use the provided factory functions!

class ezdxf.entities.ImageDef
dxf.class_version

Current version is 0.

dxf.filename

Relative (to the DXF file) or absolute path to the image file as string.

dxf.image_size

Image size in pixel as (x, y) tuple.

dxf.pixel_size

Default size of one pixel in drawing units as (x, y) tuple.

dxf.loaded

0 = unloaded; 1 = loaded, default = 1

dxf.resolution_units
0 No units
2 Centimeters
5 Inch

Default = 0

ImageDefReactor

class ezdxf.entities.ImageDefReactor
dxf.class_version
dxf.image_handle