AutoXchange 2023 Technical Documentation

Color Parameters

Color Parameters
Parameter JSON Parameter Description
B Background Background
BW ForceBlack Black and White
GS GreyScale Greyscale

Color Palette

The color palette differs depending on the input format and, for AutoCAD, background color.

Background

PARAMETER B or BAC[KGROUND]
Purpose This parameter defines whether the background of the output image is black, white
or another color. The color table is based on the color table for the input format.
So DWG/DXF, DWF and DGN all have different color table definitions. Each format has
Black as 0 and White as 255. For AutoCAD 250 through 254 are shades of gray.
Values 0: Black
1: Red
2: Yellow
3: Green
4: Cyan
5: Blue
6: Magenta
254: Grey (AutoCAD)
255: White (Default)
Black
Red
Yellow
Green
Cyan
Blue
Magenta
White
Grey/Gray
Examples -B 1
-B BLACK
JSON {“Background” : “Yellow”}
{“Background” : 2}
Aliases -BLACK : same as -B 0
-WHITE : same as -B 255
-GREY: same as -B 254
Use With all graphic formats

 

Black and White

PARAMETER BW
Purpose This parameter selects Black and White only mode. Output will be Black on a White background
Example -BW
JSON {“ForceBlack” : true}
{“Mono” : “”}
Values
0 Normal Color mode
1 or nothing Black and White only
Default 0 - Normal color mode
Alias -MONO (for “Monochrome”)
Use All formats

 

Greyscale

PARAMETER GREYSCALE
Purpose This parameter selects Greyscale mode. Output will be shades of Grey on a White background
Formula The conversion from RGB to Gray is: GREY = .3 * Red + .59 * Green + .11 * Blue
Example -GS
JSON {“GreyScale” : true}
Alternate Spelling -GREYSCALE
-GRAYSCALE
Default 0 - Normal color mode
Alias -GS
-GREY
-GRAY
Use All formats
Last updated on 27 Jan 2022
Published on 6 Jun 2020