public void GetDisplaySurfaceData(DxgiSurface1 destination) { if (destination == null) { throw new ArgumentNullException("destination"); } this.output.GetDisplaySurfaceData(destination.GetHandle <IDxgiSurface>()); }
public void GetDisplaySurfaceData(DxgiSurface1 destination) { if (destination == null) { throw new ArgumentNullException("destination"); } this.output.GetDisplaySurfaceData(destination.GetHandle<IDxgiSurface>()); }
public D2D1RenderTarget CreateDxgiSurfaceRenderTarget(DxgiSurface1 dxgiSurface, D2D1RenderTargetProperties renderTargetProperties) { if (dxgiSurface == null) { throw new ArgumentNullException("dxgiSurface"); } ID2D1RenderTarget renderTarget; this.factory.CreateDxgiSurfaceRenderTarget((IDxgiSurface)dxgiSurface.Handle, ref renderTargetProperties, out renderTarget); return new D2D1RenderTargetBase(renderTarget); }