FLTK logo

[fltk.general] Re: FLUID: how can I have SVG icons embedded in the code?

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

Re: FLUID: how can I have SVG icons embedded in the code? Ian MacArthur 08:27 Apr 17  
 
On Wednesday 17 April 2024 at 14:57:48 UTC+1 Gonzalo wrote:
I've loaded some SVG icons into my .fl file.  However, when the .fl file
is converted, the .svg icons are turned into RGB images. Is there a way
to keep them as SVG so that they will scale properly?

Greg does it like this: https://www.seriss.com/people/erco/fltk/#Fl_SVG_Image 
which might work?

I guess the crux is to store the ASCII text in fluid rather than the image (I think fluid converts the svg into an image...)
Maybe in fluid you can use the "binary data" option to store the raw svg text as a char array, and then interpret that data as ASCII in your code?
Might work - though I have not tried it as such...


 

--
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 on the web visit https://groups.google.com/d/msgid/fltkgeneral/6f8b656d-a30d-4709-b521-e2986edbbdf9n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

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