Converts SVG files to PNG files using Direct2D SVG Renderer and ID2D1SvgDocument.
This command line tool is used to test Direct2D SVG rendering.
Build commands for MSVC 2019 (in Windows Command Prompt):
cl /nologo /c /Od /W4 /WX /EHsc d2dsvg2png-tester.cpp
link /nologo /WX d2dsvg2png-tester.obj d2d1.lib windowscodecs.lib ole32.lib shlwapi.lib /OUT:d2dsvg2png-tester.exe
To convert SVG to PNG:
d2dsvg2png-tester input.svg output.png