From a QCAD user:
I’m using dwg2bmp to export a CAD drawing to a bitmap and the rendered image quality is not good. Would it be better to export to PDF?
From a QCAD user:
I’m using dwg2bmp to export a CAD drawing to a bitmap and the rendered image quality is not good. Would it be better to export to PDF?
The quality of the image produced by dwg2bmp depends on two factors:
For better results, use a higher image resolution and use a format that does not compress or supports loss-less compression (e.g. PNG). JPEG is generally not suitable for images rendered from CAD drawings.
You can indicate the resolution used for the export using the -r switch:
./dwg2bmp -f -r 10 -m 0 -o example.png example.dxf
This produces an image with 10 pixels per drawing unit. The higher the resolution the larger the bitmap and the better the image quality.
Would it be better to export to PDF?
PDF and Bitmaps are fundamentally different formats:
A line exported to a bitmap is turned into small dots, a line exported to PDF is still a line and rendered as such.
Here’s a more detailed discussion about vector graphics (DXF, PDF, SVG, …) vs. raster graphics (BMP, PNG, JPEG, TIFF, …):