mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-01 09:35:38 +00:00

87137e791 Release v2.3.6 a03316bbd Refactoring 906d326b2 Revert "Merge pull request #84 from seanharmer/master" git-subtree-dir: external/lunasvg git-subtree-split: 87137e791c912432b93982722a8e965628950ca7
1.9 KiB
1.9 KiB
If you like the work lunasvg is doing please consider a small donation :
LunaSVG - SVG rendering library in C++
Example
#include <lunasvg.h>
using namespace lunasvg;
int main()
{
auto document = Document::loadFromFile("tiger.svg");
auto bitmap = document->renderToBitmap();
// do something useful with the bitmap here.
return 0;
}
Features
- Basic Shapes
- Document Structures
- Coordinate Systems, Transformations and Units
- SolidColors
- Gradients
- Patterns
- Masks
- ClipPaths
- Markers
- StyleSheet
TODO
- Texts
- Filters
- Images
Build
git clone https://github.com/sammycage/lunasvg.git
cd lunasvg
mkdir build
cd build
cmake ..
make -j 2
To install lunasvg library.
make install
Demo
While building lunasvg example it generates a simple SVG to PNG converter which can be used to convert SVG file to PNG file.
Run Demo.
svg2png [filename] [resolution] [bgColor]