示例#1
0
 protected internal override void ChangeRenderTarget(RenderTarget newRenderTarget)
 {
     if (RenderTargetSupportsGDI(newRenderTarget))
     {
         gdiRenderTarget = newRenderTarget.GetGdiInteropRenderTarget();
     }
     else if (gdiRenderTarget != null)
     {
         gdiRenderTarget.Dispose();
         gdiRenderTarget = null;
     }
 }