using System; using System.Collections.Generic; using System.Linq; using System.Text; using HNWD.Pregrant.Common; using HNWD.Pregrant.DataAccess; using HNWD.Pregrant.Model; using System.Drawing; using System.IO; namespace HNWD.LatticeScreen.Server { internal class BitmapProgram : ProgramBase { private char[] pdata; public BitmapProgram(LedLatticeScreen ledLatticeScreen) : base() { this.ledLatticeScreen = ledLatticeScreen; } public override void SetEntity(Pregrant.Model.WD_ProgramInfo wd_ProgramInfo) { base.SetEntity(wd_ProgramInfo); byte[] byteArray = Convert.FromBase64String(GZipCompress.Decompress(this.wd_ProgramInfo.PROGRAM_MATRIX)); pdata = new char[byteArray.LongLength]; for(long i = 0;i