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?
dwg2bmp Image Quality
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
dwg2bmp Image Quality
From a QCAD user:
Re: dwg2bmp Image Quality
The quality of the image produced by dwg2bmp depends on two factors:
- image resolution used (the number of pixels used to represent the image)
- compression used for formats with lossy compression (JPEG)
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:
This produces an image with 10 pixels per drawing unit. The higher the resolution the larger the bitmap and the better the image quality.
- Bitmaps contain raster graphics which are based on pixels (small colored dots, like in digital photographs).
- PDF is a vector format (containing lines, curves, ...).
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, ...):
http://www.youthedesigner.com/graphic-d ... r-clients/
- image resolution used (the number of pixels used to represent the image)
- compression used for formats with lossy compression (JPEG)
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:
Code: Select all
./dwg2bmp -f -r 10 -m 0 -o example.png example.dxf
PDF and Bitmaps are fundamentally different formats:Would it be better to export to PDF?
- Bitmaps contain raster graphics which are based on pixels (small colored dots, like in digital photographs).
- PDF is a vector format (containing lines, curves, ...).
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, ...):
http://www.youthedesigner.com/graphic-d ... r-clients/