File: Export: Image
(When Matrix window is active)
Export image to file
Command Line Usage
1. expImage fname:="c:\flower";
2. expImage im:=[Mbook1]1 type:=tif fname:=c:\flower;
3. expimage -t mytheme f:="c:\ExportedUsingTheme";
X-Function Execution Options
Please refer to the page for additional option switches when accessing the x-function from script
The image to export. The default is the active image.
Specify the export type.
- Export to BMP file.
- Export to GIF file.
- Export to JPG file.
- Export to PCX file.
- Export to PNG file.
- Export to PSD file.
- Export to TGA file.
- Export to TIF file.
Specify the path and filename of the exported image. If file extension is omitted, it will be appended according to the file type.
Specify the image settings. Note that different settings are available for different file types. For all types, you can specify the DPI resolution and color depth. When JPG is selected for File Type, you can further specify the compression ratio. As for TIFF, both the color space and compression method are available.
See more details in Description table
The expImage function exports a matrix object as an image file. The matrix object of any data type can be used as input, but it might be converted to another data type according to the settings and output type.
Eight export file types (BMP, GIF, JPEG, TIFF etc) are supported. Users can choose among them according to their needs.
You can also specify DPI resolution, color depth, etc. using the Image Settings tree in the dialog. Please select a file type before you use this tree, because different settings are available for different file types.
Details on Some Dialog Options
- Please see this page for more details.
1. The following example exports the active matrix object as a JPEG image file (c:\test.jpg):
- a. From the Origin menu, select File: Export: Image. This opens the expASC dialog for you to tweak the export options.
- b. Use the File Type drop-down list to select "Joint Photographic Experts Group *.jpg". Enter "c:\test.jpg" for File Name. Click Ok to close the dialog.
2. The following script command exports the active matrix object as a BMP file (c:\test.bmp) without opening the dialog:
expImage fname:="c:\test.bmp" type:=0;