public async Task Render(IChroma chroma)
        {
            var canvas = new ChromaCanvas();

            foreach (var layer in Layers)
            {
                layer.Render(canvas);
            }

            await canvas.SetEffect(chroma).ConfigureAwait(false);
        }
示例#2
0
        public async Task Render(IChroma chroma, object state)
        {
            var canvas = new ChromaCanvas();

            for (var i = 0; i < _layers.Count; i++)
            {
                _layers[i].Render(canvas, state);
            }

            await canvas.SetEffect(chroma).ConfigureAwait(false);
        }
示例#3
0
 internal void Render(ChromaCanvas canvas) => OnRender(canvas);
示例#4
0
 protected abstract void OnRender(ChromaCanvas canvas);
示例#5
0
 internal void Render(ChromaCanvas canvas, object state) => OnRender(canvas, state);
示例#6
0
 protected abstract void OnRender(ChromaCanvas canvas, object state);