Tom Cunningham on wrote... | Tom Cunningham <[EMAIL PROTECTED]> sent the following | comment to "anthony", about "Prob Scripting Rnd Border Ex". | You are reading it:- | ------------------------------------------------------------ | I'm having trouble scripting the rounded border example. | I'm pretty sure it's in the syntax of the arguments. No error is given | upon running and no image is created. | Could you tell me where the error is? | | Using IM 6.2.9 Q8 | Here is my VBScript code: | | img_W1 = img_Info(0) - 2 | img_H1 = img_Info(1) - 2 | img_N1 = Int((img_Info(0) + img_Info(1)) / 15) | img_Str = img_W1 & "," & img_H1 & " " & img_N1 & "," img_N1 | | oImg.Convert load_Trans,"-border","2","-format", "roundrectangle 1,1 " & img_Str, _ | dir_Home & "images\slide\rounded_corner.mvg" | | oImg.Convert load_Trans,"-border","2","-matte","-channel","RGBA","-threshold","-1", _ | "-background","none","-fill","none","-stroke","black","-strokewidth","3", _ | "-draw",dir_Home & "images\slide\rounded_corner.mvg",dir_Home & "images\slide\rounded_corner_overlay.png" | | oImg.Convert load_Trans,"-border","2","-matte","-channel","RGBA","-threshold","-1", _ | "-background","none","-fill","white","-stroke","black","-strokewidth","1", _ | "-draw",dir_Home & "images\slide\rounded_corner.mvg",dir_Home & "images\slide\rounded_corner_mask.png" | | oImg.Convert load_Trans,"-matte","-bordercolor","none","-border","2", _ | dir_Home & "images\slide\rounded_corner_mask.png","-compose","DstIn","-composite", _ | dir_Home & "images\slide\rounded_corner_overlay.png","-compose","Over","-composite" _ | "-depth","8","-quality","95",load_Image | | Any help you can give is very much appreciated.
Looks like the NEW rounded border example. http://www.cit.gu.edu.au/~anthony/graphics/imagick6/thumbnails/#rounded The other method using images is also demonstrated by the later 'Fancy border' example http://www.cit.gu.edu.au/~anthony/graphics/imagick6/thumbnails/#fancy All methods used simular techniques. one image to overlay new parts to image, another to erase other parts of the image. Hmmm.. Prehaps you don't realise that a "mvg" file is just a text file of draw commands. See MVG files http://www.cit.gu.edu.au/~anthony/graphics/imagick6/draw/#mvg The example only uses it as it uses IM to generate the draw command using format. As you are not using IM to do the calculations you do NOT need to use a MVG file. Just replace the "@rounded_corner.mvg" with the roundrectangle draw command directly!!!! Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- Windows gives you a nice view of clouds so you can't see any potentially useful boot time messages. -- Bill Hay ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
