VB - Component - Montage
Posted: 2012-10-31T02:34:57-07:00
Hi all,
I have a VB program where I am trying to use the montage function to tile some graphics.
I can get it working fine with shelling to the commandline and running montage.exe, but I can not get the VB/Compnent integration working.
My test machine is a W7 x64 ...I am running VB6
I have a simple project with one module with the following:
Dim strTimename as String
Dim strOutputFilename as String
Dim objImage As New MagickImage
strTilename = "c:\temp\Misfits.S03E07.HDTV.XviD-TLA.jpg"
strOutputFilename = "c:\temp\jay.jpg"
objImage.montage "-geometry", "+0+0", "-tile", "1x1", strTilename, strOutputFilename
set objImage = Nothing
When I run it, I get the following error:
Runtime error: -2147418113 (8000ffff):
Method 'Montage' of object 'IMagickImage' failed
I have run the test VBS scripts and they work fine.
I have the component object enabled in VB references.
Please help...
J.
I have a VB program where I am trying to use the montage function to tile some graphics.
I can get it working fine with shelling to the commandline and running montage.exe, but I can not get the VB/Compnent integration working.
My test machine is a W7 x64 ...I am running VB6
I have a simple project with one module with the following:
Dim strTimename as String
Dim strOutputFilename as String
Dim objImage As New MagickImage
strTilename = "c:\temp\Misfits.S03E07.HDTV.XviD-TLA.jpg"
strOutputFilename = "c:\temp\jay.jpg"
objImage.montage "-geometry", "+0+0", "-tile", "1x1", strTilename, strOutputFilename
set objImage = Nothing
When I run it, I get the following error:
Runtime error: -2147418113 (8000ffff):
Method 'Montage' of object 'IMagickImage' failed
I have run the test VBS scripts and they work fine.
I have the component object enabled in VB references.
Please help...
J.