Draw a primitive with OLE Object VBSCRIPT

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Alexvb6
Posts: 49
Joined: 2012-10-12T16:50:15-07:00
Authentication code: 67789

Draw a primitive with OLE Object VBSCRIPT

Post by Alexvb6 »

Hello,

I'm trying to adapt the following sample coming from the official documentation :
convert -size 100x60 xc:skyblue -fill white -stroke black \
-draw "circle 50,30 40,10" draw_circle.gif


I'm trying to adapt it in VBSCRIPT as follow :
Set IMimg = CreateObject("ImageMagickObject.MagickImage.1")
IMimg.Convert "-size", "100x60", "xc:skyblue" ,"-fill", "white", "-draw", "'", "circle", "50,30", "40,10", "'", "c:\mytestfolder\draw_circle.gif"
Set IMimg= nothing


My image remains in Skyblue, but noting is DRAWN over it.

What is wrong in my syntax ?

Thank you very much ! I'm stuck
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Draw a primitive with OLE Object VBSCRIPT

Post by magick »

Shouldn't the draw be:
  • "-draw", "circle 50,30, 40,10", "c:\mytestfolder\draw_circle.gif"
Alexvb6
Posts: 49
Joined: 2012-10-12T16:50:15-07:00
Authentication code: 67789

Re: Draw a primitive with OLE Object VBSCRIPT

Post by Alexvb6 »

magick wrote:Shouldn't the draw be:
  • "-draw", "circle 50,30, 40,10", "c:\mytestfolder\draw_circle.gif"
THANK you very much !
I had tried a lot of combinations, but not this one !
It works perfectly, you're right.
No need to use commas.
:D
So again THANK you a lot !
Post Reply