I just tried this simple example based on what I had in VBA using Visual Studio Community 2013, to build an x64 target, on windows 8.1 64 bit.
You need to use the 64 bit version of ImageMagick if you are creating a 64 bit application.
Only late binding seems to work, so objIM is defined as object in the example.
64 bit version is slightly faster than 32, but not sure the COM object is much faster than command line.
Code: Select all
Dim objIM As Object
objIM = CreateObject(("ImageMagickObject.MagickImage.1"))
Make sure you installed the ImageMagickObject when you installed ImageMagick.
Register the ImageMagickObject.dll using regsvr32.exe from windows\system32.
Make sure the system Path environment variable includes:-
Also had to change two other environment variables that had been set by a recently installed utility:-