2.7.5 expG2img


Menu Information

File: Export Graph as Image...

Brief Information

Export graph as a raster file

Command Line Usage

expG2img type:=jpg name:="<short name>" path:="C:\Users\Documents\OriginLab\User Files" width:=2000;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Graph igp

Input

GraphPageBase

<active>

The graph to export. The default is the active graph.

Image Type type

Input

int

0

Specify the export image type.


Option list

  • 0=png:PNG
  • 1=bmp:BMP
  • 2=jpg:JPEG
  • 3=tif:TIFF
File Name name

Input

string

<long name>

Specify the file name of the exported graph.

File Path path

Input

string

path$

Specify a path to store the exported image file. By default, user files folder will be used.

Width in Pixels width

Input

int

0

Specify the width of the image in pixels. By default, the actual graph size will be used.

Height in Pixels height

Input

int

0

Specify the height of the image in pixels. By default, the actual graph size will be used.


Description

This X-Function is a simpler tool to export the current graph as a raster image file.

If you want to do some advanced settings during exporting the graphs, you are supposed to use the expGraph instead.

Related X-Functions

impImage, expMatASC,expImage,expGraph