/// <summary> /// Render with provided settings on connected prepared nodes /// </summary> public async Task <Bitmap> Render(RenderManagerSettings settings = null, Action <RenderSubTask, Bitmap> onResultUpdated = null, Action <RenderSubTask, Bitmap> onTileReceived = null) { if (CurrentTask != null) { throw new InvalidOperationException("Already rendering.."); } try { CurrentTask = GetRenderTask(settings, onResultUpdated, onTileReceived); return(await CurrentTask.Render()); } finally { CurrentTask = null; } }