-
Notifications
You must be signed in to change notification settings - Fork 2
Small example program to test ID2D1DeviceContext5 and ID2D1SvgDocument in MinGW-W64
License
bustercopley/direct2d-svg-example
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Example program using ID2D1DeviceContext5 and ID2D1SvgDocument. Create a bitmap and paint a white stripe on a purple background, with Direct2D. Render an SVG image (a white circle), if enabled. Save the bitmap to a PNG file. Build commands (in Windows Command Prompt): With MinGW-W64 g++, without SVG (note the -DNO_SVG option): g++ -c -o d2d-test.o -DNO_SVG -municode -O0 -ggdb3 -Wall -Wextra -Werror d2d-test.cpp g++ -o d2d-test.exe -municode -O0 -ggdb3 -Wall -Wextra -Werror d2d-test.o -ld2d1 -lwindowscodecs -lole32 -lshlwapi d2d-test.exe output.png circle.svg With MinGW-W64 g++, with SVG: g++ -c -o d2d-test.o -municode -O0 -ggdb3 -Wall -Wextra -Werror d2d-test.cpp g++ -o d2d-test.exe -municode -O0 -ggdb3 -Wall -Wextra -Werror d2d-test.o -ld2d1 -lwindowscodecs -lole32 -lshlwapi d2d-test.exe output.png circle.svg With MSVC 2019, with SVG: cl /nologo /c /Od /W4 /WX /EHsc d2d-test.cpp link /nologo /WX d2d-test.obj d2d1.lib windowscodecs.lib ole32.lib shlwapi.lib /OUT:d2d-test.exe d2d-test.exe output.png circle.svg Or use the Makefiles: With MinGW-W64 g++, without SVG, with MSYS2 mingw32-make: mingw32-make With MinGW-W64 g++, with SVG, with MSYS2 mingw32-make: mingw32-make CPPFLAGS= With MSVC 2019, with SVG, with MSYS2 mingw32-make: c:\msys64\mingw64\bin\mingw32-make -f Makefile-vc
About
Small example program to test ID2D1DeviceContext5 and ID2D1SvgDocument in MinGW-W64
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published