I'm trying to use ImageMagick from within an application written in
Magic (V9.4sp6b). I chose ImageMagick because it offers
COM+-compatibility. When I open the COM-interface in Magic (CallCom) I
have to fill arguments, return values and so on.
* I installed ImageMagick properly, it works on the command line
and the Type Library is selectable in the list
* I created and virtual (type=OLE, var=A, library=ImageMagick)
* I create a new line, CallCom, Object=A,
option=CallMethod,Method=Identify, Arguments=???, ReturnValue=???
* The problems are in the arguments and the return value. The
argument is of (external) type VT_Variant (R,A), Direction In/Out and
optional.
* What do I send as argument? I tried: 'C:\tmp\image.jpg'
,File2Blb('C:\tmp\image.jpg'), VariantCreate(8200,'C:\tmp\image.jpg').
In this last case I get no error but the return value is empty according
to the Flow Monitor.
The Return Value is another issue. Type is VT_Variant and is also
optional.
* What is returned? I used an Virtual, Alpha255 as ReturnVariable,
but it stays empty.The Monitor reports "Returned Value:{VT_EMPTY}"
* I used a blob as well. Same results.
The image exists and on the command line it works fine.
Florian
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users