Page 1 of 1

Writing images using dxflib

Posted: Wed Feb 10, 2016 6:59 pm
by theZivkovic
How to write image (e.g. bmp) into dxf file using dxflib?
Can someone provide me a minimal example?

I don't understand the interface:
int writeImage(DL_WriterA& dw, const DL_ImageData& data, const DL_Attributes& attrib);
void writeImageDef(DL_WriterA& dw, int handle, const DL_ImageData& data);

Why do both methods contain DL_ImageData?

Thanks in advance.

Re: Writing images using dxflib

Posted: Tue Feb 16, 2016 12:40 pm
by andrew
Please refer to the QCAD DXF exporter code for an example of how to use this interface: ... porter.cpp