/// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void draw(object sender, PaintEventArgs e)
 {
     IntPtr dc = e.Graphics.GetHdc();
     DrawRequest drawR = new DrawRequest();
     drawR.hdc = dc;
     drawR.left = 0;
     drawR.right = Width;
     drawR.top = 0;
     drawR.bottom = Height;
     manualRenderer.draw(drawR);
     e.Graphics.ReleaseHdc(dc);
 }
예제 #2
0
 public void draw(DrawRequest r)
 {
     CDODrawRequest nativeR = r.toNative();
     nativeR.rendererId = _rendererId;
     nativeR.windowHandle = r.hdc;
     NativeAPI.cdo_draw(_platformHandle, ref nativeR);
 }
 public void draw(object sender, PaintEventArgs e)
 {
     IntPtr dc = e.Graphics.GetHdc();
     DrawRequest drawR = new DrawRequest();
     drawR.hdc = dc;
     drawR.left = 0;
     drawR.right = renderingPanel.Width;
     drawR.top = 0;
     drawR.bottom = renderingPanel.Height;
     renderer.draw(drawR);
     e.Graphics.ReleaseHdc(dc);
 }