Jump to content

IE DOM usage for SVG files


UEZ
 Share

Recommended Posts

Is it somehow possible to use SVGPathElement DOM interface to convert a SVG file to polygons within AutoIt?

  • load a SVG file with AutoIt
  • convert the SVG vectors to polygons using this interface
  • export the polygons to a file

I don't know whether it works also for multi vectorized objects.

An example is here: http://phrogz.net/svg/convert_path_to_polygon.xhtml / http://stackoverflow.com/questions/8091983/convert-path-to-polygon / https://www.w3.org/TR/SVG/paths.html#InterfaceSVGPathElement

 

I've absolutely no experiences with this kind of stuff (you know it is not GDI+ ;-))

 

THANKS.

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

That bot picked you up quick.  You should make it repeat something like a giant ascii middle finger.

https://twitter.com/fmuaddib/status/719951296707608576

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Link to comment
Share on other sites

4 hours ago, iamtheky said:

That bot picked you up quick.  You should make it repeat something like a giant ascii middle finger.

https://twitter.com/fmuaddib/status/719951296707608576

Bad robot:

....................../´¯) 
....................,/¯../ 
.................../..../ 
............./´¯/'...'/´¯¯`·¸ 
........../'/.../..../......./¨¯\ 
........('(...´...´.... ¯~/'...') 
.........\.................'...../ 
..........''...\.......... _.·´ 
............\..............( 
..............\.............\... 

 

Well, I started to write a very simple SVG to GDI+ path converter but then I discovered that there are plenty of SVG formats and commands :o -> I gave it up.

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

  • 5 years later...

Is this project idea dead or on sabbatical?

As I learn more about SVG files I can't help but wish I could use them (converted to GDI+ or text copied into my scripts)

The draw here (for me) is to be able to make complex graphics without including a bunch of PNGs  / BMPs (or any)

The scale of this is beyond my skill but I am hopeful.

To share : I do have a shadow of a workaround - if you make simple SVGs one color (0x000000) and import them into Fontello and use them (with the Fontello font) like Wingdings in GDI+. The glyphs are completely scalable and I've gotten good results for some simple designs. You can make different parts of your image separately and merge them together as shapes (with different color fill / stroke) else each glyph is all the same color(s).

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...