This commit is contained in:
TheXamlGuy
2024-04-26 23:05:36 +01:00
parent 9f90ef693d
commit bc55c4649b
206 changed files with 3106 additions and 3204 deletions
@@ -1,32 +1,30 @@
using System;
namespace Gma.QrCodeNet.Encoding.Positioning.Stencils;
internal abstract class PatternStencilBase : BitMatrix
{
protected const bool O = false;
protected const bool X = true;
protected const bool O = false;
protected const bool X = true;
internal PatternStencilBase(int version)
{
Version = version;
}
internal PatternStencilBase(int version)
{
Version = version;
}
public int Version { get; private set; }
public int Version { get; private set; }
public abstract bool[,] Stencil { get; }
public abstract bool[,] Stencil { get; }
public override int Width => Stencil.GetLength(0);
public override int Width => Stencil.GetLength(0);
public override int Height => Stencil.GetLength(1);
public override int Height => Stencil.GetLength(1);
public override bool[,] InternalArray => throw new NotImplementedException();
public override bool[,] InternalArray => throw new NotImplementedException();
public override bool this[int i, int j]
{
get => Stencil[i, j];
set => throw new NotSupportedException();
}
public override bool this[int i, int j]
{
get => Stencil[i, j];
set => throw new NotSupportedException();
}
public abstract void ApplyTo(TriStateMatrix matrix);
}
public abstract void ApplyTo(TriStateMatrix matrix);
}