File: Export Image...
Export the active Image as file
cvExport type:=jpg name:=Image001 path:=D:\ImageFolder;
cvExport type:=tif dpi:=93 geotiff:=1 path:=D:\DataFile;
cvExport type:=avi name:=test_LT path:="C:\Users\user\Documents\OriginLab\User Files" fourcc:=WMV2;
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 |
---|---|---|---|---|
img |
Input ImageLayer |
|
The image to export. The default is the active image. | |
File Type | type |
Input int |
|
Specify the export type. Option List:
|
All Frames | all |
Input int |
|
Export all frames. Option List:
|
Frames Per Sec | fps |
Input double |
|
Frames per second. Only available when All Frames is specified. |
DPI | dpi |
Input int |
|
Specify the DPI value. |
Export as Grayscale GeoTIFF | geotiff |
Input int |
|
Specify whether to export the image as grayscale GeoTIFF, when export tif file (type:=tif). Option List:
|
GeoTIFF Options | tr |
Input TreeNode |
|
Specify the GeoTIFF image settings. When exporting the image as grayscale GeoTIFF file (geotiff:=1), you can specify GT Model, EPSG, Linear Units, Angular Units and Vertical Units. See Description, below for treenode details. |
File Name | name |
Input string |
|
Specify file name of the exported image. |
File Path | path |
Input string |
|
Specify the path of the exported image. |
Width in Pixels | width |
Input int |
|
It is the width of the graph in pixels. This variable is read-only. |
Height in Pixels | height |
Input int |
|
It is the height of the graph in pixels. This variable is read-only. |
FourCC | fourcc |
Input string |
|
For scripting AVI output. Supply the FourCC code (example in Command Line Usage, above). A few FourCC codes can be found in the LabTalk Reference. Note: The Codec node, visible in the dialog, will be hidden from LabTalk access. The fourcc node will be used in LabTalk and this is what is output when you Generate Script (from the Dialog Theme menu). |
The cvExport function exports a image as an image file. Six export file types (BMP, GIF, JPG, PNG, TIF, AVI) are supported.
Details on Some Dialog Options
Keywords:export