All Cadcorp SIS API Methods

ExportTiff Method

Description

Exports the current view to a TIFF file.

Syntax

Visual Basic
Public Function ExportTiff( _
   ByVal filename As String, _
   ByVal w As Long, _
   ByVal h As Long, _
   ByVal tiffType As Long, _
   ByVal bNormalised As Integer _
) As Integer

Parameters

filename
The name of the exported file.
 
w
The width of the TIFF image, in pixels.
 
h
The height of the TIFF image, in pixels.
 
tiffType
The compression type to use:

SIS_SAVEBMP_TIFFUncompressed
SIS_SAVEBMP_TIFF_PACKBITSPackbits
SIS_SAVEBMP_TIFF_GP4CCITT Group 4 (fax)
SIS_SAVEBMP_TIFF_LZWLempel-Ziv-Welch
 
bNormalised
True

Normalise the geo-registration information contained in the Geotiff file format. Normalised geotiff includes a full definition of the coordinate system, in addition to the EPSG code.

False

Do not normalise the geo-registration information. Only include the EPSG code in the file. Some GIS systems are not able to translate all EPSG codes.

Remarks

Available: D OD OM SISpy

Groups:

Example

sis.ExportTiff ("c:\raster\map.tif", 600, 400, SIS_SAVEBMP_TIFF, True)

Exports the current view as a 600 x 400 uncompressed raster image including full coordinate system information.