ClassLibraryWeiBao/QR二维码/StateMatrix.cs

(完整代码) 750B

using System;

namespace Gma.QrCodeNet.Encoding
{
	public sealed class StateMatrix
	{
		private MatrixStatus[,] m_matrixStatus;
		private readonly int m_Width;
		
		public StateMatrix(int width)
		{
			m_Width = width;
			m_matrixStatus = new MatrixStatus[width, width];
		}
		
		public MatrixStatus this[int x, int y]
		{
			get
			{
				return m_matrixStatus[x, y];
			}
			set
			{
				m_matrixStatus[x, y] = value;
			}
		}
		
		internal MatrixStatus this[MatrixPoint point]
		{
			get
			{ return this[point.X, point.Y]; }
			set
			{ this[point.X, point.Y] = value; }
		}
		
		public int Width
		{
			get { return m_Width; }
		}
		
		public int Height
		{
			get { return this.Width; }
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。