Version:
1.0.0
Funktion:
Diese Bibliothek erstellt aus einem String einen QRCode. Es ist möglich Text, Links und anderes in einen solchen Code einzuspeichern. Die gesamte Routinen sind dabei gemäss der offiziellen Dokumentation (ISO/IEC 18004) implementiert worden und es wurde versucht die Bibliothek so einfach zu halten wie irgendwie möglich.
Verfügbare Funktionen:
Spoiler anzeigen
Verfügbare Properties:
Spoiler anzeigen
Klassendiagramm:
Aufruf (normal --> Version und Maske werden automatisch bestimmt):
Aufruf mit Setzen von erweiterten Einstellungen (nur einsetzen, falls der generierte QRCode nicht gelesen werden konnte):
Spoiler anzeigen
Ersteller Beispiel QR-Code:
Sonstige Details:
Programmiersprache: VB.NET
IDE: Visual Studio 2012 Ultimate
Framework: 2.0
Geplante Erweiterungen:
Download:
Im Anhang (mit Demoprojekt)
1.0.0
Funktion:
Diese Bibliothek erstellt aus einem String einen QRCode. Es ist möglich Text, Links und anderes in einen solchen Code einzuspeichern. Die gesamte Routinen sind dabei gemäss der offiziellen Dokumentation (ISO/IEC 18004) implementiert worden und es wurde versucht die Bibliothek so einfach zu halten wie irgendwie möglich.
Verfügbare Funktionen:
VB.NET-Quellcode
- ''' <summary>
- ''' Initialize a new QR-Code with user specific values
- ''' </summary>
- ''' <param name="TextString">The Texstring which should be encoded in the QRCode.</param>
- ''' <param name="ErrorCorrection">The Error Correction Level of the QRCode.</param>
- ''' <param name="TileSize">The Size in pixel of a square from the QRCode.</param>
- ''' <param name="BorderSize">The Size in pixel of the border around the QRCode.</param>
- ''' <param name="SettingsForce">Force manual settings</param>
- ''' <param name="VersionForce">The version which should be forced, if force is enabled.</param>
- ''' <param name="MaskForce">The mask which should be forced, if force is enabled.</param>
- ''' <remarks></remarks>
- Public Sub New(ByVal TextString As String, ByVal ErrorCorrection As QRCodeErrorCorrectionLevel, ByVal TileSize As Integer, ByVal BorderSize As Integer, _
- Optional ByVal SettingsForce As QRCodeForce = QRCodeForce.NoForce, Optional ByVal VersionForce As QRCodeVersion = QRCodeVersion.VersionAuto, _
- Optional ByVal MaskForce As QRCodeMask = QRCodeMask.MaskAuto)
- ''' <summary>
- ''' Initialize a new QR-Code with user specific values
- ''' </summary>
- ''' <param name="TextString">The Texstring which should be encoded in the QRCode.</param>
- ''' <param name="ErrorCorrection">The Error Correction Level of the QRCode.</param>
- ''' <param name="TileSize">The Size in pixel of a square from the QRCode.</param>
- ''' <param name="BorderSize">The Size in pixel of the border around the QRCode.</param>
- ''' <remarks></remarks>
- Public Sub New(ByVal TextString As String, ByVal ErrorCorrection As QRCodeErrorCorrectionLevel, ByVal TileSize As Integer, ByVal BorderSize As Integer)
- ''' <summary>
- ''' This function creates the QRCode.
- ''' </summary>
- ''' <returns>Returns the QRCode as Bitmap.</returns>
- ''' <remarks></remarks>
- Public Function Generate() As Bitmap
Verfügbare Properties:
VB.NET-Quellcode
- ''' <summary>
- ''' Gets or sets the TextString
- ''' </summary>
- ''' <value>The new TextString to set</value>
- ''' <returns>The actual TextString</returns>
- ''' <remarks></remarks>
- Public Property TextString As String
- ''' <summary>
- ''' Gets or sets the ErrorCorrection
- ''' </summary>
- ''' <value>The new ErrorCorrection to set</value>
- ''' <returns>The actual ErrorCorrection</returns>
- ''' <remarks></remarks>
- Public Property ErrorCorrection As QRCodeErrorCorrectionLevel
- ''' <summary>
- ''' Gets or sets the Forced Version
- ''' </summary>
- ''' <value>The new Forced Version to set</value>
- ''' <returns>The actual Forced Version</returns>
- ''' <remarks></remarks>
- Public Property VersionForce As QRCodeVersion
- ''' <summary>
- ''' Gets or sets the Forced Mask
- ''' </summary>
- ''' <value>The new Forced Mask to set</value>
- ''' <returns>The actual Forced Mask</returns>
- ''' <remarks></remarks>
- Public Property MaskForce As QRCodeMask
- ''' <summary>
- ''' Gets or sets the force of manual settings
- ''' </summary>
- ''' <value>The new force of manual settings to set</value>
- ''' <returns>The actual force of manual settings</returns>
- ''' <remarks></remarks>
- Public Property SettingsForce As QRCodeForce
- ''' <summary>
- ''' Gets or sets the TileSize
- ''' </summary>
- ''' <value>The new TileSize to set</value>
- ''' <returns>The actual TileSize</returns>
- ''' <remarks></remarks>
- Public Property TileSize As Integer
- ''' <summary>
- ''' Gets or sets the BorderSize
- ''' </summary>
- ''' <value>The new BorderSize to set</value>
- ''' <returns>The actual BorderSize</returns>
- ''' <remarks></remarks>
- Public Property BorderSize As Integer
- ''' <summary>
- ''' Reads the used version for the decoding
- ''' </summary>
- ''' <value></value>
- ''' <returns>The used Version for the decoding</returns>
- ''' <remarks></remarks>
- Public ReadOnly Property VersionUsed As QRCodeVersion
- ''' <summary>
- ''' Reads the used mask for the decoding
- ''' </summary>
- ''' <value></value>
- ''' <returns>The used mask for the decoding</returns>
- ''' <remarks></remarks>
- Public ReadOnly Property MaskUsed As QRCodeMask
Klassendiagramm:
Aufruf (normal --> Version und Maske werden automatisch bestimmt):
Aufruf mit Setzen von erweiterten Einstellungen (nur einsetzen, falls der generierte QRCode nicht gelesen werden konnte):
VB.NET-Quellcode
Ersteller Beispiel QR-Code:
Sonstige Details:
Programmiersprache: VB.NET
IDE: Visual Studio 2012 Ultimate
Framework: 2.0
Geplante Erweiterungen:
- Weitere Eingabemöglichkeiten (z.B. VCard, Bytearray, ...), momentan nur Textstrings möglich
- Farben
- Dekodierklasse
- ev. Logo-QRCode
Download:
Im Anhang (mit Demoprojekt)