ES-DE/external/lunasvg
2022-10-30 10:53:52 +01:00
..
.github Merge commit '32546b5874ed5bb3f1f8abaf700d8012799ccf37' as 'external/lunasvg' 2022-10-03 18:25:42 +02:00
3rdparty/plutovg Merge commit 'e5b9b5300696c02f872dc8f124fc96402e4570b4' into new-svg-renderer 2022-10-26 20:03:32 +02:00
example Merge commit '32546b5874ed5bb3f1f8abaf700d8012799ccf37' as 'external/lunasvg' 2022-10-03 18:25:42 +02:00
include Merge commit '3acd894f373efcdc18f682a826f78f6722f32c59' into new-svg-renderer 2022-10-03 20:53:48 +02:00
source Merge commit '53fa042a7f0a260eea017fff678c12c1d59cc0d4' 2022-10-30 10:53:52 +01:00
CMakeLists.txt Merge commit 'fd498ff35e6349ce60119a99d5bc615278da690d' into new-svg-renderer 2022-10-16 12:31:43 +02:00
LICENSE Merge commit '32546b5874ed5bb3f1f8abaf700d8012799ccf37' as 'external/lunasvg' 2022-10-03 18:25:42 +02:00
luna.png Merge commit '32546b5874ed5bb3f1f8abaf700d8012799ccf37' as 'external/lunasvg' 2022-10-03 18:25:42 +02:00
README.md Merge commit 'fd498ff35e6349ce60119a99d5bc615278da690d' into new-svg-renderer 2022-10-16 12:31:43 +02:00

Releases License Build Status

LunaSVG - SVG rendering library in C++

LunaSVG

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]

Projects Using LunaSVG

Support Me

If you like the work lunasvg is doing please consider a small donation :

Donate Donate Sponsor