VB - Component - Montage

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
Jay_UK
Posts: 1
Joined: 2012-10-31T02:22:53-07:00
Authentication code: 67789

VB - Component - Montage

Post by Jay_UK »

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.
Post Reply