Exemplo n.º 1
0
 private IPrepare Draw(WorkId workId)
 {
     IPrepare prepare = new MemoryPrepare(imageFormat);
     for (int i = workId.StartCapture; i < workId.EndCapture; i++)
     {
         Save(render.GetBitmap(i), prepare, i);
     }
     return prepare;
 }
Exemplo n.º 2
0
 public ImagesMessage(IEnumerator<byte[]> iter, WorkId workId, String extension)
 {
     iter.Reset();
     while (iter.MoveNext())
     {
         byte[] imgData = new byte[iter.Current.Length];
         iter.Current.CopyTo(imgData, 0);
         data.Add(imgData);
     }
     this.workId = workId;
     this.extension = extension;
 }
Exemplo n.º 3
0
 public WorkMessage(WorkId workId)
 {
     if (workId == null)
         throw new ArgumentNullException("Work can't be null");
     this.workId = workId;
 }