Formall.MySql/branches/WebSiteWithPresentation/QrCode/EncodingRegion/FormatInformation.cs
/// <summary>
/// Embed format information to tristatematrix. 
/// Process combination of create info bits, BCH error correction bits calculation, embed towards matrix. 
/// </summary>
/// <remarks>ISO/IEC 18004:2000 Chapter 8.9 Page 53</remarks>
Embed format information to tristatematrix.
Process combination of create info bits, BCH error correction bits calculation, embed towards matrix.
Embed format information to tristatematrix . Process combination of create info bits BCH error correction bits calculation embed towards matrix .
internal static void EmbedFormatInformation(this TriStateMatrix triMatrix,  ErrorCorrectionLevel errorlevel, Pattern pattern)
    	{
    		BitList formatInfo = GetFormatInfoBits(errorlevel, pattern);
    		int width = triMatrix.Width;
    		for(int index = 0; index < 15; index++)
    		{
    			MatrixPoint point = PointForInfo1(index);
    			bool bit = formatInfo[index];
    			triMatrix[point.X, point.Y, MatrixStatus.NoMask] = bit;
    			if(index < 7)
    			{
    				triMatrix[8, width - 1 - index, MatrixStatus.NoMask] = bit;
    			}
    			else
    			{
    				triMatrix[width - 8 + (index - 7), 8, MatrixStatus.NoMask] = bit;
    			}
    		}
    	}
internal static void EmbedFormatInformation ( this TriStateMatrix triMatrix , ErrorCorrectionLevel errorlevel , Pattern pattern ) { BitList formatInfo = GetFormatInfoBits ( errorlevel , pattern ) ; int width = triMatrix . Width ; for ( int index = 0 ; index < 15 ; index ++ ) { MatrixPoint point = PointForInfo1 ( index ) ; bool bit = formatInfo [ index ] ; triMatrix [ point . X , point . Y , MatrixStatus . NoMask ] = bit ; if ( index < 7 ) { triMatrix [ 8 , width - 1 - index , MatrixStatus . NoMask ] = bit ; } else { triMatrix [ width - 8 + ( index - 7 ) , 8 , MatrixStatus . NoMask ] = bit ; } } }
Embed format information to tristatematrix.
Embed format information to tristatematrix .
TriStateMatrix
this
errorlevel
ErrorCorrectionLevel
pattern
Pattern
remarks
None