2.15.4 cvexport


Menu Information

File: Export Image...

Brief Information

Export the active Image as file

Command Line Usage

cvExport type:=jpg name:=Image001 path:=D:\ImageFolder;

cvExport type:=tif dpi:=93 geotiff:=1 path:=D:\DataFile;

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
img

Input

ImagePage

<active>

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

File Type type

Input

int

0

Specify the export type.

Option List:

  • 0=bmp: BMP
  • 1=gif: GIF
  • 2=jpg: JPG
  • 3=png: PNG
  • 4=tif: TIF
All Frames all

Input

int

1

Export all frames.

Option List:

  • 0 = false
  • 1 = true
Frames Per Sec fps

Input

double

2

Frames per second. Only available when All Frames is specified.

DPI dpi

Input

int

96

Specify the DPI value.

Export as Grayscale GeoTIFF geotiff

Input

int

0

Specify whether to export the image as grayscale GeoTIFF, when export tif file (type:=tif).

Option List:

  • 0 = false
  • 1 = true
GeoTIFF Options trgeo

Input

TreeNode

<unassigned>

Specify the GeoTIFF image settings. When export image as grayscale GeoTIFF file (geotiff:=1), you can customize the GT Model for the image.

File Name name

Input

string

<auto>

Specify file name of the exported image.

File Path path

Input

string

path$

Specify the path of the exported image.

Width in Pixels width

Input

int

0

It is the width of the graph in pixels. This variable is read-only.

Height in Pixels height

Input

int

0

It is the height of the graph in pixels. This variable is read-only.


Description

The cvExport function exports a image as an image file. Four export file types (BMP, JPG, PNG, TIF) are supported.


Related X-Functions

expImage


Keywords:export