Neos.IdentityServer 3.0/Neos.IdentityServer.QrCodeNet/Masking/Scoring/Penalty1.cs
/// <summary>
/// Calculate penalty value for first rule.
/// </summary>
Calculate penalty value for first rule.
Calculate penalty value for first rule .
internal override int PenaltyCalculate(BitMatrix matrix)
        {
            MatrixSize size = matrix.Size;
            int penaltyValue = 0;
            penaltyValue = PenaltyCalculation(matrix, true) + PenaltyCalculation(matrix, false);
            return penaltyValue;
        }
internal override int PenaltyCalculate ( BitMatrix matrix ) { MatrixSize size = matrix . Size ; int penaltyValue = 0 ; penaltyValue = PenaltyCalculation ( matrix , true ) + PenaltyCalculation ( matrix , false ) ; return penaltyValue ; }
Calculate penalty value for first rule.
Calculate penalty value for first rule .
matrix
BitMatrix