Наследование: System.Windows.Forms.UserControl
Пример #1
0
        public D2DGraphics(D2DView.RenderTargetEventArgs e)
        {
            _renderTarget = e.RenderTarget;
            _graphics = e.Graphics;

            _renderTarget.Transform = SharpDX.Matrix3x2.Identity;

            if (!_renderTargetCache.ContainsKey(_renderTarget))
                _renderTargetCache[_renderTarget] = new RenderTargetCache();
        }
Пример #2
0
 void panelD2DSW_PaintCanvas(object sender, D2DView.RenderTargetEventArgs e)
 {
     Draw(new D2DGraphics(e), DrawingMode.DrawLines);
 }