Note
This project builds upon the foundations of the following GitHub projects:
Created for educational purposes, this project serves as a library designed to generate QR codes and export them in specified design styles to .svg files.
The repository is based on the nayuki/QR-Code-generator project, encompassing two libraries and a single demo .cpp file. The 'lib_qrcodegen' directory contains the original, unmodified files from the nayuki project, while the 'lib_svggen' directory introduces a newly designed library for exporting QR code objects to SVG files, enabling users to define their own styles.
Tip
Wymagania
Tip
Pobieranie i budowanie
Tip
Example
Note
This all examples may be found in QrCodeGeneratorDemo.cpp. They are genereted using demo fucntion called: doMarkdownExamples()
// CIS-CIE-CIE-4-1
st.bodystyle = SvgData::body::CIRCLES;
st.eyeballstyle = SvgData::eyeball::CIRCLE;
st.eyeframestyle = SvgData::eyeframe::CIRCLE;
sc.background = "AAFF00";
sc.body = "011620";
sc.eyeball = "1010FF";
sc.eyeframe = "0116AA";
cornerradius = 4;
border = 1;
// SQU-CIE-CIS-4-2
st.bodystyle = SvgData::body::SQUARE;
st.eyeballstyle = SvgData::eyeball::CIRCLE;
st.eyeframestyle = SvgData::eyeframe::CIRCLES;
sc.background = "ffee00";
sc.body = "bc0068";
sc.eyeball = "bc0068";
sc.eyeframe = "fb00ff";
cornerradius = 4;
border = 2;
// ROD-CIR-ROD-4-2
st.bodystyle = SvgData::body::ROUNDED;
st.eyeballstyle = SvgData::eyeball::ROUNDED;
st.eyeframestyle = SvgData::eyeframe::ROUNDED;
sc.background = "270065";
sc.body = "d4ff00";
sc.eyeball = "ff0000";
sc.eyeframe = "ff0000";
cornerradius = 4;
border = 2;