public override void AnnotationSave(Guid saveTaskId, System.IO.Stream saveStream, Obany.Render.Objects.Canvas canvas, string mimeType, AnnotationSaveComplete annotationSaveComplete) { ThreadPool.QueueUserWorkItem(delegate(object s) { Obany.Render.Canvas.CanvasRenderer canvasRenderer = new Obany.Render.Canvas.CanvasRenderer(); string errorMessage; Obany.Render.Objects.RenderCanvas renderCanvas = canvasRenderer.Render(canvas, mimeType, GetFontFolderPath(), out errorMessage); if (renderCanvas != null) { saveStream.Write(renderCanvas.Data, 0, renderCanvas.Data.Length); saveStream.Close(); } if (annotationSaveComplete != null) { annotationSaveComplete(renderCanvas != null, saveTaskId); } }); }
public abstract void AnnotationSave(Guid saveTaskId, System.IO.Stream saveStream, Obany.Render.Objects.Canvas canvas, string mimeType, AnnotationSaveComplete annotationSaveComplete);