Beispiel #1
0
 public QRArtCreator(
     IQRCodeEncoder qrCodeEncoder,
     IBinarizer binarizer, IMerger merger,
     IBitMatrixDrawer bitMatrixDrawer)
 {
     if (qrCodeEncoder == null)
     {
         throw new ArgumentNullException(nameof(qrCodeEncoder));
     }
     if (binarizer == null)
     {
         throw new ArgumentNullException(nameof(binarizer));
     }
     if (merger == null)
     {
         throw new ArgumentNullException(nameof(merger));
     }
     if (bitMatrixDrawer == null)
     {
         throw new ArgumentNullException(nameof(bitMatrixDrawer));
     }
     QRCodeEncoder   = qrCodeEncoder;
     Binarizer       = binarizer;
     Merger          = merger;
     BitMatrixDrawer = bitMatrixDrawer;
 }
Beispiel #2
0
 public QRAnimationCreator(
     IQRCodeEncoder qrCodeEncoder,
     IBinarizer binarizer, ITriparizer triparizer, IColorizer colorizer, IMerger merger,
     IBitMatrixDrawer bitMatrixDrawer, ITripMatrixDrawer tripMatrixDrawer,
     Func <IReadOnlyList <IRgb24BitmapFrame>, IRgb24BitmapBase> frameMerger)
     : base(qrCodeEncoder, binarizer, triparizer, colorizer, merger, bitMatrixDrawer, tripMatrixDrawer)
 {
     FrameMerger = frameMerger;
 }