I have imported StitchEngine.dll into my .NET program and I am trying to use it with following lines:
Dim Stitch As New StitchEngineWrapper
Dim opt As New OutputOptions(ExportFormat.JPEG, 100, False, True, True)
Dim img As New List(Of String)
img.Add("c:\image 1.jpg")
img.Add("c:\image 2.jpg")
Stitch.AddImageCacheLocations(img)
Stitch.StartAligning()
Stitch.StartCompositing()
Stitch.StartCompleting()
Dim v As System.ValueType
v=1
Stitch.StartExporting("C:\export", v, 1.0, opt, False)
the problem is that I can not initialize v as a crop rectangle. and I got the following error :
An unhandled exception of type 'System.InvalidCastException' occurred in StitchEngine.dll
Additional information: Specified cast is not valid.
Can you please help me with this?
Thank you,
farzad