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; }
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; }
public WorkMessage(WorkId workId) { if (workId == null) throw new ArgumentNullException("Work can't be null"); this.workId = workId; }