/// <summary> /// Constructs MatrixGraphics instance /// </summary> /// <param name="device">Max7219 device</param> /// <param name="font">Font to use for drawing text</param> public MatrixGraphics(Max7219 device, IFont font) { if (device == null) { throw new ArgumentNullException(nameof(device)); } if (font == null) { throw new ArgumentNullException(nameof(font)); } _device = device; Font = font; }
/// <summary> /// Constructs MatrixGraphics instance /// </summary> /// <param name="device">Max7219 device</param> /// <param name="font">Font to use for drawing text</param> public MatrixGraphics(Max7219 device, IFont font) { _device = device ?? throw new ArgumentNullException(nameof(device)); Font = font ?? throw new ArgumentNullException(nameof(font)); }