[plt-scheme] MysterX and ImageMagick COM object

From: Ron Stanonik (stanonik at Cogsci.ucsd.edu)
Date: Wed Jul 23 01:05:20 EDT 2003

Hi,

I've been trying to use the ImageMagick COM object for
manipulating images.  (See www.imagemagick.org.)
It works in VB, but in DrScheme I get a complaint
about the arguments.  In VB I use

  dim im as ImageMagickObject.MagickImage
  set im = new ImageMagickObject.MagickImage
  im.convert("C:\\arf.bmp", "C:\\arf.jpg")

In DrScheme I try
  (define im (cci/progid "ImageMagickObject.MagickImage"))
  (com-invoke im "Convert" "C:\\arf.bmp" "C:\\arf.jpg")

  com-invoke (method "Convert"): expects type <com-0x401b> as 3rd 
  argument, given: "C:\\arf.bmp"; other arguments were: #<com-object>
  "Convert"a "C:\\arf.jpg"

0x401b is a VT_SAFEARRAY, so I guess I need to know how, if possible,
to create that in DrScheme.

Thanks,

Ron



Posted on the users mailing list.