Render SVG directly in memory and use as 2D Sprite?
Posted: Thu Oct 02, 2025 3:25 pm
Hi everyone,
I have a question about working with SVG in PureBasic.
I’d like to know if there’s a way to:
Render an SVG file (or SVG string) directly into an image in memory, without creating temporary files like test.svg.
Use that in-memory rendered image to create/import it as a 2D sprite and draw it on screen.
The idea is to handle vector graphics directly inside the program, without having to convert them to PNG or other formats beforehand.
Has anyone tried something similar? Is there any library or workaround for this in PureBasic?
Thanks!
I have a question about working with SVG in PureBasic.
I’d like to know if there’s a way to:
Render an SVG file (or SVG string) directly into an image in memory, without creating temporary files like test.svg.
Use that in-memory rendered image to create/import it as a 2D sprite and draw it on screen.
The idea is to handle vector graphics directly inside the program, without having to convert them to PNG or other formats beforehand.
Has anyone tried something similar? Is there any library or workaround for this in PureBasic?
Thanks!