This is a fully functional DLL that can be incorporated in to virtually any Windows Program. We have provided some sample
source code to show how you could use this DLL in your program
Visual Basic
Add a refernce to the DLL in the Project
- In Visual Basic, click on the 'Project' menu, then click on 'References'
- Click the 'Browse' button and find the SCTiffMerger.dll
- Double Click it so that it appears in your 'Available References' Page
Include this code in the beginning part of your program (or you could put this in your module)
Dim TMerge As New TiffMerge.SCTiffMerger
To call the function and merge TIFF files, you could use the following:
mergepageresult = TMerge.Tiff_Merge("C:\test\test-1.tif,c:\test\test-2.tif", "C:\outputdir","newfilename.tif")
Cold Fusion
<cfobject type="com"
action="create"
class="TiffMerge.SCTiffMerger"
name="TMerge">
return status 1 means successful merge
return status 0 means filename not found
return status -1 general error
return status -2 means not a tiff file
return status -3 means 'folder not found'
<cfset mergeresult = TMerge.Tiff_Merge("C:\test\test-1.tif,c:\test-2.tif", "C:\outputdir", "newfilename.tif")>
<cfoutput>
#mergeresult#
</cfoutput>
ASP
Copy and Paste the following source code in to a test.asp page on your web server:
return status 1 means successful merge
return status 0 means filename not found
return status -1 general error
return status -2 means not a tiff file
return status -3 means 'folder not found'
<%
Set Obj = Server.CreateObject("TiffMerge.SCTiffMerger")
dim filename
dim mergeresult
filename = "<comma seperated list of TIFF files with the FULL PATH AND FILENAME>"
(example: "c:\test\test-1.tif,c:\test\test-2.tif,etc...")
mergeresult = Obj.Tiff_Merge(cstr(filename), "C:\outputdir", "c:\newfilename")>
Response.Write("<BR>" & filename & " :- <li>" & CStr(mergeresult) & " </li>")
Set Obj = Nothing
%>