I added the reference ImageMagickObject 1.0 Type Library and also made sure that I am not binding early.
But I still have an error when I run the following code.
The error number is '-2147215503'.
Code: Select all
Private Sub CommandButton1_Click() On Error GoTo ErrorHandler Dim img Set img = New ImageMagickObject.MagickImage MsgBox (img.Convert("C:\Users\AIH\Desktop\test1.jpg", "-format", "%c", "histogram:info:C:\Users\AIH\Desktop\out.txt")) Exit Sub ErrorHandler: MsgBox (Err.Number & ":" & Err.Description) End Sub
Please let me know how I can resolve this? I would also be grateful if anybody can point for VBA ImageMagick Documentation.
Thanks a lot.