public void LoadStatic(LEDImage Frame, int offset = 0) { for (int i = 0; i < nx; i++) { for (int j = 0; j < ny; j++) { Matrix[i, j].Fill = Frame.Matrix[i, j + offset] ? On : Off; } } }
public void Load(LEDImage Frame) { ReloadTimer.Stop(); this.Image = Frame; Offset = 0; if (Image.Offsets != null) { ReloadTimer.Tick += (s, a) => ReloadImage(); ReloadImage(); } else { LoadStatic(Frame); } }