Exemplo n.º 1
0
        public void GetDisplaySurfaceData(DxgiSurface destination)
        {
            if (destination == null)
            {
                throw new ArgumentNullException("destination");
            }

            this.output.GetDisplaySurfaceData(destination.GetHandle <IDxgiSurface>());
        }
Exemplo n.º 2
0
        public void GetDisplaySurfaceData(DxgiSurface destination)
        {
            if (destination == null)
            {
                throw new ArgumentNullException("destination");
            }

            this.output.GetDisplaySurfaceData(destination.GetHandle<IDxgiSurface>());
        }
        public D2D1RenderTarget CreateDxgiSurfaceRenderTarget(DxgiSurface 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);
        }