Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 public QRArtCreator(
     IQRCodeEncoder qrCodeEncoder,
     IBinarizer binarizer, ITriparizer triparizer, IColorizer colorizer, IMerger merger,
     IBitMatrixDrawer bitMatrixDrawer, ITripMatrixDrawer tripMatrixDrawer)
 {
     if (qrCodeEncoder == null)
     {
         throw new ArgumentNullException(nameof(qrCodeEncoder));
     }
     if (binarizer == null)
     {
         throw new ArgumentNullException(nameof(binarizer));
     }
     if (colorizer == null)
     {
         throw new ArgumentNullException(nameof(colorizer));
     }
     if (triparizer == null)
     {
         throw new ArgumentNullException(nameof(triparizer));
     }
     if (merger == null)
     {
         throw new ArgumentNullException(nameof(merger));
     }
     if (bitMatrixDrawer == null)
     {
         throw new ArgumentNullException(nameof(bitMatrixDrawer));
     }
     QRCodeEncoder    = qrCodeEncoder;
     Binarizer        = binarizer;
     Triparizer       = triparizer;
     Colorizer        = colorizer;
     Merger           = merger;
     BitMatrixDrawer  = bitMatrixDrawer;
     TripMatrixDrawer = tripMatrixDrawer;
 }