private void button1_Click(object sender, EventArgs e) { var ellipse = new D2D.Ellipse(new SharpDX.Mathematics.Interop.RawVector2(100, 100), 10, 10); var brush = new D2D.SolidColorBrush(_renderTarget, new SharpDX.Mathematics.Interop.RawColor4(1, 0, 0, 1)); _renderTarget.BeginDraw(); _renderTarget.Clear(new RawColor4(0.752F, 0.862F, 0752F, 0)); _renderTarget.DrawEllipse(ellipse, brush, 1); _renderTarget.FillEllipse(ellipse, brush); _renderTarget.EndDraw(); }
public void Draw(float x, float y) { _renderTarget.BeginDraw(); _renderTarget.Clear(new RawColor4(0.752F, 0.862F, 0752F, 0)); foreach (var item in listBaseLine) { item.Draw(); } for (int i = 0; i < dlList.Count; i++) { dlList[i].Draw(); } CursorData(x, y); _renderTarget.EndDraw(); }