# GetGraphic(Int32, String, String, Boolean, SvgQRCode.SizingMode, SvgQRCode.SvgLogo) Method Returns a QR code as SVG string with custom colors (in HEX syntax), optional quietzone and logo ## Definition **Namespace:** QRCoder.Core **Assembly:** QRCoder.Core (in QRCoder.Core.dll) Version: 1.0.2+100b048b01076590efe500a3be242a5faeb43294 **XMLNS for XAML:** Not mapped to an xmlns. **C#** ``` C# public string GetGraphic( int pixelsPerModule, string darkColorHex, string lightColorHex, bool drawQuietZones = true, SvgQRCode.SizingMode sizingMode = SvgQRCode.SizingMode.WidthHeightAttribute, SvgQRCode.SvgLogo logo = null ) ``` **C++** ``` C++ public: String^ GetGraphic( int pixelsPerModule, String^ darkColorHex, String^ lightColorHex, bool drawQuietZones = true, SvgQRCode.SizingMode sizingMode = SvgQRCode.SizingMode::WidthHeightAttribute, SvgQRCode.SvgLogo^ logo = nullptr ) ``` #### Parameters
  Int32
The pixel size each b/w module is drawn
  String
The color of the dark/black modules in hex (e.g. #000000) representation
  String
The color of the light/white modules in hex (e.g. #ffffff) representation
  Boolean  (Optional)
If true a white border is drawn around the whole QR Code
  SvgQRCode.SizingMode  (Optional)
Defines if width/height or viewbox should be used for size definition
  SvgQRCode.SvgLogo  (Optional)
A (optional) logo to be rendered on the code (either Bitmap or SVG)
#### Return Value String SVG as string ## See Also #### Reference SvgQRCode Class GetGraphic Overload QRCoder.Core Namespace