![]() |
![]() |
![]() |
![]() |
[
About ImageMagick
Command-line Tools
Program Interfaces
] [ Install from Source Binary Releases Resources ] [ Download ] [ Links ] [ Sponsors Consumer Reviews and Ratings ] |
Work in progress! More to come in the near futureMVG ignores all white-space between commands. This allows multiple MVG commands per line. It is common convention to terminate each MVG command with a new line to make MVG easier to edit and read. This syntax description uses indentation in MVG sequences to aid with understanding. Indentation is supported but is not required. Metafile wrapper syntax (to support stand-alone MVG files) ----------------------------------------------------------push graphic-context viewbox 0 0 width height [ any other MVG commands ] pop graphic-contextPattern syntax (saving and restoring context) --------------------------------------------- push pattern id x,y width,height push graphic-context [ drawing commands ] pop graphic-context pop patternan example is (%s is a identifier string) push defs push pattern %s 10,10 20,20 push graphic-context fill red rectangle 5,5 15,15 pop graphic-context push graphic-context fill green rectangle 10,10 20,20 pop graphic-context pop pattern pop defsFor image tiling use push pattern id x,y width,height image Copy ... pop patternNote you can use the pattern for either the fill or stroke like stroke url(#%s)or fill url(#%s)Clip-path syntax ---------------- The clip path defines a clipping area, where only the contained area will be drawn upon. Areas outside of the clipping area are masked. push defs push clip-path %s push graphic-context rectangle 10,10 20,20 pop graphic-context pop clip-path pop defs clip-path url(#%s) Choose from these rule types: evenodd nonzero Choose from these unit types: userSpace userSpaceOnUse objectBoundingBox Choose from these method types: point replace floodfill filltoborder reset Choose from these types of decorations: none line-through overline underline Choose from any of these colors. The opacity ranges from 0.0 (fully opaque) to 1.0 (fully transparent) or as a percentage (e.g. 50%). Choose from these rule types: evenodd nonzero Choose from these stretch types: all normal ultra-condensed extra-condensed condensed semi-condensed semi-expanded expanded extra-expanded ultra-expanded Choose from these styles: all normal italic oblique Choose from these weights: all normal bold 100 200 300 400 500 600 700 800 900 Choose from these units: userSpace userSpaceOnUse objectBoundingBox Choose from these gravity types: NorthWest North NorthEast West Center East SouthWest South SouthEast Choose from these compose operations: Add Atop Bumpmap Clear CopyBlue CopyGreen CopyOpacity CopyRed Copy Difference In Minus Multiply Out Over Plus Subtract Xor Choose from these methods: point replace floodfill filltoborder reset Use percent (e.g. 50%). Choose from these cap types: butt round square Choose from these join types: butt miter round square |