Beispiel #1
0
        public static QRCode EncodeBytes(byte[] data, CorrectionLevel correctionLevel)
        {
            if (data is null)
            {
                throw new ArgumentNullException(nameof(data));
            }

            if (correctionLevel is null)
            {
                throw new ArgumentNullException(nameof(correctionLevel));
            }

            return(EncodeSegments(new[] { QRSegment.CreateByteSegment(data) }, correctionLevel));
        }