It's hard to believe this software is seldom used in the VB/.NET world, but there are almost no examples or documentation anywhere to be found. I'm putting this here for anyone else to find in future searches. As you'll see I'm not an accomplished VB coder but it works.

I got the basic concept of a parameter array from this post,viewtopic.php?f=8&t=18140,but could not get any output when trying to feed in file names and parameters from a text file containing the commands I wanted to execute.

Here is how I was able to use variable parameters with the ImageMagick COM object image.convert()

I put all the ImageMagick parameters in a single line string (read from a text file) including the input and output file names as the first and last values, e.g.

Using TypeLib Information Library is good implementation but solution. Before, I'd written a program using TLI Application with perfect call-by-name mechanism that it helps to dynamically feed parameters to the MagickImage.Convert method, and then I found it's hard to deploy because TLI library is supplied by VB6 IDE.

Then, I used VB6 built-in command `CallByName`. If a conversion job needs five arguments, I have a code feeding five arguments to Convert method. If it needs three arguments, I have a code feeding three. The whole code looks like that,