Writing images using dxflib

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
Junior Member
Posts: 12
Joined: Thu Dec 03, 2015 11:20 am

Writing images using dxflib

Post by theZivkovic » Wed Feb 10, 2016 6:59 pm

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.

User avatar
Site Admin
Posts: 6502
Joined: Fri Mar 30, 2007 6:07 am

Re: Writing images using dxflib

Post by andrew » Tue Feb 16, 2016 12:40 pm

Please refer to the QCAD DXF exporter code for an example of how to use this interface:
https://github.com/qcad/qcad/blob/maste ... porter.cpp

Post Reply

Return to “dxflib 'How Do I' Questions”