FLTK logo

Re: [fltk.general] Re: Deficiencies in Fl_SVG_Image

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.general  ]
 
[ Previous Message ] [ New Message | Reply ] [ Next Message ]

Re: Re: Deficiencies in Fl_SVG_Image "'pvrose 06:56 Oct 05  
 

From: 'Matthias Melcher' via fltk.general <fltkgeneral@googlegroups.com>
Sent: Sunday, October 4, 2026 3:52 PM
To: fltk.general <fltkgeneral@googlegroups.com>
Subject: [fltk.general] Re: Deficiencies in Fl_SVG_Image
 

There are three things that come spontaneously to my mind to work around this. The first one, just load a png or inline one, you already tried. If you want to stick with vector file, just link a different SVG interpreter. There are several libraries out there, and you can import the result using RGB. The third one will give mixed results, depending on the resolution of the target machine: use the commands in the SVG file and map them direct;y to FLTK graphics calls. This requires a little bit of coding, but FLTK rendering call include lines, loops and arbitrary filled areas, which is enough to draw any flag that does;t require shading.

I found a library called "lunasvg" and it works a treat. Not well documented but eventually sussed it.

Regards Phil.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkgeneral/MA2P292MB00065EE3688C96D179FB5F7AF0962%40MA2P292MB0006.ESPP292.PROD.OUTLOOK.COM.
[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.