Inheritance: 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);
 }