Skip to content

dwg2bmp

Alat naredbenog retka koji prikazuje DWG/DXF crtež kao rastersku bitmap sliku.

Usage: ./dwg2bmp [OPTIONS]... <drawing file>
Converts a drawing file (DWG, DXF, ...) to a bitmap file (BMP, PNG, ...).
-a, -antialiasing Enable antialiasing
-b, -background=C Set the background color as color name
e.g. 'white' or '#ccdd00'.
-block=BLOCK_NAME Name of block (or layout) to output
(defaults to *Model_Space)
-c, -color-correction Enable color correction to prevent white on white
or black on black painting
-d, -recompute-dim Recompute dimension blocks if empty
(dimensions rendered with best compatibility)
-f, -force Overwrite existing output file
-flat Flatten to 2D (Z==0)
-fs, -font-substitution FONT1 FONT2
Substitute FONT1 with FONT2
-h, -help Display this help
-no-weight-margin Don't add additional margin to compensate for
lineweight
-k, -grayscale Grayscale
-layer=LAYER_NAMES Comma-separated list of layer(s) to export
List may include regular expressions
-l, -list List supported formats
-ltscale=FACTOR Set linetype scale to FACTOR
-m, -margin=M Set auto zoom margin to M (in pixels)
-n, -monochrome Monochrome (black / white)
-o, -outfile=FILE Set output file to FILE
Default is same path and base name as input file
-q, -quality=Q Set the image quality / compression
(0=best compression..100=best quality)
-r, -resolution=R Set rendering resolution to R
(in pixels/drawing unit)
This overrides the width/height parameters.
-u, -unit=[in|m|mm] Assume input data to be in given unit
Default is the drawing unit
Mainly useful for drawings with unit 'None'
-w, -window=X,Y,W,H Zoom to given window
-x, -width=W Set bitmap width to W (in pixels)
-y, -height=H Set bitmap height to H (in pixels)
The maximum size for width*height is 536870911 pixels
-zoom-all Auto zoom to maximum extends of all layers
-p, -origin Draw zero point (origin)
macOS specific options:
-no-dock-icon Don't show icon in dock. This should only be used
in combination with -no-gui.
Qt/X11 platform arguments:
-platform offscreen Run without requiring an X11 server or display.
Use this argument to run this command line tool in a
Linux server environment.
Qt/X11 environment variables:
QT_QPA_FONTDIR Set to fonts directory in a server environment, e.g. 'fonts/qt'.