2.7.7 expG2img


Menu Information

File: Export Graph as Image...

Brief Information

Export graph with a simple dialog.

Command Line Usage

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

2.expG2img type:=emf name:="<PE parent1>-<long name>" path:="C:\Users\Documents\OriginLab\User Files" ratio:=60;

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
  • 4=emf:EMF
  • 5=svg:SVG
  • 6=PDF(MS print to PDF)
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.

Graph Size size

Input

string

It is the actual size of the graph. This variable is read-only.

Convert Text to Outlines font

Input

int

0

Check this checkbox to convert the text element into a path to make sure even though the target PC doesn't support the corresponding font, the text can be displayed correct. Otherwise, the default font will be used to display which would cause some character font inconsistent with others.

Available for vector format type (i.e. SVG, EMF)

DPI res

Input

int

300

Specify the graph DPI of the exported graph.

Size Factor (%) ratio

Input

int

100

Specify the size factor of the exported graph when the image type is EMF and SVG.

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