Example #1
0
 public TemplateInfo(TemplateInfoLight info)
 {
     base.m_dbInfo     = (DataAccess.TemplateInfoDb)info;
     this.Name         = info.Name;
     this.Image        = new Image <Bgr, byte>((Bitmap)Bitmap.FromStream(new MemoryStream(base.m_dbInfo.Image)));
     this.Template     = new Image <Bgr, byte>((Bitmap)Bitmap.FromStream(new MemoryStream(base.m_dbInfo.Template)));
     this.CoverDetails = base.m_dbInfo.HiddenAreas.ToObject <CoverInfo>();
 }
Example #2
0
 public TemplateInfo()
 {
     CoverDetails = new CoverInfo();
     m_dbInfo     = new DataAccess.TemplateInfoDb();
 }