2.15.3.1 Details of Image Settings in Export Image

tr

The tr provides a group of settings for the ExpImage X-Function, which can be used to set the properties of the exported image.

Syntax: tr.SubTree.Treenode:=<value>
Example: tr.BMP.dotsperinch:=300;


BMP

The BMP branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as BMP.

Syntax: tr.BMP.Treenode:= <value>

Example: tr.BMP.bitsperpixel:="24-bit Color" // Specifies the resolution of the exported image



Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution of the exported image. Options include 72, 96, 100, 150, 300, 600 and 1200.
bitsperpixel Color Depth string 256 Colors Specifies the color-depth of the exported image.
  • Monochrome
    Export the graph using black and white only.
  • 16 Colors
    Export the graph using 16 colors.
  • 256 Colors
    Export the graph using 256 colors.
  • 16-bit Color
    Export the graph using 16-bit color.
  • 24-bit Color
    Export the graph using 24-bit color.
  • 8-bit Gray Scale
    Export the graph using 256 gray scales.


GIF

The GIF branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as GIF.

Syntax: tr.GIF.Treenode:= <value>

Example: tr.GIF.bitsperpixel:="24-bit Color" // Specifies the resolution of the exported image


Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution for the exported image, which can be 72, 96, 100, 150, 300, 600, or 1200.
bitsperpixel Color Depth string 256 Colors Specifies the color depth.
  • Monochrome
    Export graph with only black and white
  • 16 Colors
    Export graph with 16 colors
  • 256 Colors
    Export graph with 256 colors
  • 8-bit Gray Scale
    Export graph with 256 gray scales

JPG

The JPG branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as JPG.

Syntax: tr.JPG.Treenode:= <value>

Example: tr.JPG.dotsperinch:=300 // Specifies the resolution of the exported image



Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution of the exported image, which can be 72, 96, 100, 150, 300, 600, or 1200.
bitsperpixel Color Depth string 24-bit Color Specifies the color-depth of the exported image.
  • 24-bit Color
    Export graph using 24-bit color
  • 8-bit Gray Scale
    Export graph with 256 gray scales
Compression Compression int 0 Defines the compression level, which is an integer between 0 and 255. The size of exported file decreases with the increase of compression level.

PCX

The PCX branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as PCX.

Syntax: tr.PCX.Treenode:= <value>

Example: tr.PCX.dotsperinch:=300 // Specifies the resolution of the exported image



Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution of the exported image, which can be 72, 96, 100, 150, 300, 600, or 1200.
bitsperpixel Color Depth string 256 Colors Specifies the color-level of the exported image.
  • Monochrome
    Black and white only.
  • 16 Colors
    16 colors
  • 256 Colors
    256 colors
  • 24-bit Color
    24-bit color
  • 8-bit Gray Scale
    The exported image will be a gray image with 256 gray scales.


PNG

The PNG branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as PNG.

Syntax: tr.PNG.Treenode:= <value>

Example: tr.PNG.dotsperinch:=300 // Specifies the resolution of the exported image


Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution of the exported image. Options include 72, 96, 100, 150, 300, 600 and 1200.
bitsperpixel Color Depth string 256 Colors Specifies the color-depth of the exported image.
  • Monochrome
    Export the graph with only black and white.
  • 16 Colors
    Export the graph with 16 colors.
  • 256 Colors
    Export the graph with 256 colors.
  • 24-bit Color
    Export the graph using 24-bit color.
  • 8-bit Gray Scale
    Export the graph using 256 gray scales.

PSD

The PSD branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as PSD.

Syntax: tr.PSD.Treenode:= <value>

Example: tr.PSD.dotsperinch:=300 // Specifies the resolution of the exported image


Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution of the exported image. Options include 72, 96, 100, 150, 300, 600 and 1200.
bitsperpixel Color Depth string 256 Colors Specifies the color-depth of the exported image
  • Monochrome
    Export the graph using black and white only.
  • 16 Colors
    Export the graph using 16 colors.
  • 256 Colors
    Export the graph using 256 colors.
  • 16-bit Color
    Export the graph using 16-bit color.
  • 24-bit Color
    Export the graph using 24-bit color.
  • 8-bit Gray Scale
    Export the graph using 256 gray scales.


TGA

The TGA branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as TGA.

Syntax: tr.TGA.Treenode:= <value>

Example: tr.TGA.dotsperinch:=300 // Specifies the resolution of the exported image


Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution of the exported image. Options include 72, 96, 100, 150, 300, 600 and 1200.
bitsperpixel Color Depth string 256 Colors Specifies the color-depth of the exported image.
  • Monochrome
    Export the graph using black and white only.
  • 16 Colors
    Export the graph using 16 colors.
  • 256 Colors
    Export the graph using 256 colors.
  • 16-bit Color
    Export the graph using 16-bit color.
  • 24-bit Color
    Export the graph using 24-bit color.
  • 8-bit Gray Scale
    Export the graph using 256 gray scales.

TIF

The TIF branch of the tr tree specifies the exporting setting when the image type of the exported image is selected as TIF.

Syntax: tr.TIF.Treenode:= <value>

Example: tr.TIF.dotsperinch:=300 // Specifies the resolution of the exported image


Treenode Label Type Default Description
dotsperinch DPI Resolution int 300 Specifies the resolution of the exported image. Options include 72, 96, 100, 150, 300, 600 and 1200.
ColorSpace Color Space string RGB Specifies the color space to use when the graphs are exported.
  • RGB
    This color space is used widely in display. It uses red, green, and blue as primary colors.
  • CMYK
    This color space is used widely in printing. It uses cyan, magenta, yellow, and black as primary colors.
  • YCbCr
    This color space is used widely in video and digital photography systems. In this color space, Y is the luma component, while Cb and Cr are blue and red chroma components.
bitsperpixel Color Depth string 256 Colors Specifies the color-depth of the exported image.
  • Monochrome
    Export the matrix as image using black and white only.
  • 16 Colors
    Export the matrix as image using 16 colors.
  • 256 Colors
    Export the matrix as image using 256 colors.
  • 16-bit Color
    Export the matrix as image using 16-bit color.
  • 24-bit Color
    Export the matrix as image using 24-bit color.
  • 8-bit Gray Scale
    Export the matrix as image using 256 gray scales.
  • 16-bit Gray Scale
    Export the matrix as image using 65536 gray scales.
Compression Compression string None Specifies the compression method.
  • None
    No compression
  • PackBits
    PackBits compression
  • LZW
    LZW compression