Image Viewer CP ActiveX Control

ExportTIF

 

Export image file from multipage TIFF file.

Public Function ExportTIF( _
  ByVal strInputFile As String , _
  ByVal strOutputFile As String, _
  ByVal strFileType As String, _
  ByVal iPageNo As Integer, _
  ByVal iBpp As Integer
) As Integer

 

Parameter
strInputFile
the input tif file.

strOutputFile
the output file name.

strFileType
the Image format you want to save.
 JPG  - JPEG file.
 PNG - PNG file.
 GIF - GIF file.
 EMF - EMF file.
 TIF - TIF file.
 BMP - BMP file.
 PDF - PDF file.

iPageNo
the page no you want to export

iBpp
the bit of palette. It is useful when output TIFF or PDF file.

1 - 1 bit
4 - 4 bit
8 - 8 bit
24 - 24 bit

Return Value

Return 1 - Successful
Return 0 - Failed


Example

   

Visual Basic Syntax
ImageViewer1.ExportTIF "c:\test.tif" ,"c:\out", "jpg",1,24