I'm one more trying to use the ImageMagickObject in Visual Basic (using Visual Studio 2008). And I am despairing in getting the image out again after IM is done with it. At the moment, my choice is between receiving literally "Nothing" or a SafeArrayTypeMismatchException. The former achievement I got with:
Code: Select all
Dim image As New MagickImage ' (with the appropriate link)
Dim Bild(1), msgs
Bild(0) = "JPG:"
msgs = image.Convert("logo:", Bild)
If I try late binding instead as in ArrayTest.vbs, that is:
Code: Select all
Dim Bild(1), msgs
Dim img
img = CreateObject("ImageMagickObject.MagickImage.1")
Bild(0) = "JPG:"
msgs = img.Convert("logo:", Bild)
So an idea how to get an image back out of IM (without writing it to disk) anyone? Seems the other questions on the board here were unresolved and all other searches yielded no result as well.
Thanks for your help,
Daniel