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? "'Matthias Melcher' via fltk.general" 09:58 Apr 17  
 

Tha Data Node type also improved quite a bit. You can choose if you want your data to be stored as text, binary, or zlib compressed. If you like, you can use Fl_PNG_Image("myImage", binaryData, binaryDataSze); to read an image that way instead of using the "Image" fields.

Ian MacArthur schrieb am Mittwoch, 17. April 2024 um 17:27:10 UTC+2:
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/a502b276-4de7-47a0-a4b9-4592aa93e425n%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'.