public D2DGraphics(D2DView.RenderTargetEventArgs e) { _renderTarget = e.RenderTarget; _graphics = e.Graphics; _renderTarget.Transform = SharpDX.Matrix3x2.Identity; if (!_renderTargetCache.ContainsKey(_renderTarget)) _renderTargetCache[_renderTarget] = new RenderTargetCache(); }
void panelD2DSW_PaintCanvas(object sender, D2DView.RenderTargetEventArgs e) { Draw(new D2DGraphics(e), DrawingMode.DrawLines); }