File: Export Graph as Image...
Export graph with a simple dialog.
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;
Please refer to the page for additional option switches when accessing the x-function from script
| Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
|---|---|---|---|---|
| Graph | igp |
Input GraphPageBase |
|
The graph to export. The default is the active graph. |
| Image Type | type |
Input int |
|
Specify the export image type. Option list
|
| File Name | name |
Input string |
|
Specify the file name of the exported graph. |
| File Path | path |
Input string |
|
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 |
|
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) |
| Transparent Background | tb |
Input int |
|
Check this checkbox to export graph with transparent background. Available for PNG and TIFF. |
| DPI | res |
Input int |
|
Specify the graph DPI of the exported graph. |
| Size Factor (%) | ratio |
Input int |
|
Specify the size factor of the exported graph when the image type is EMF and SVG. |
| Follow Dark Mode Color | dk |
Input int |
|
Check this checkbox to export graph with dark mode color settings. Available when dark mode is on. |
| Width in Pixels | width |
Input int |
|
Specify the width of the image in pixels. By default, the actual graph size will be used. |
| Height in Pixels | height |
Input int |
|
Specify the height of the image in pixels. By default, the actual graph size will be used. |
This X-Function is a simpler tool to export the current graph as a raster image file. Refer to this page for more information.
If you want to do some advanced settings during exporting the graphs, you are supposed to use the expGraph instead.