Page 1 of 1

Draw a primitive with OLE Object VBSCRIPT

Posted: 2013-01-25T13:31:49-07:00
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

Re: Draw a primitive with OLE Object VBSCRIPT

Posted: 2013-01-25T13:40:35-07:00
by magick
Shouldn't the draw be:
  • "-draw", "circle 50,30, 40,10", "c:\mytestfolder\draw_circle.gif"

Re: Draw a primitive with OLE Object VBSCRIPT

Posted: 2013-01-25T13:57:13-07:00
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 !