示例#1
0
 public IRenderTargetBitmapImpl CreateLayer(Size size)
 {
     return(D2DRenderTargetBitmapImpl.CreateCompatible(
                WicFactory,
                DirectWriteFactory,
                _renderTarget,
                size));
 }
示例#2
0
        public IDrawingContextLayerImpl CreateLayer(Size size)
        {
            if (_deviceContext == null)
            {
                CreateDeviceContext();
            }

            return(D2DRenderTargetBitmapImpl.CreateCompatible(_deviceContext, size));
        }
示例#3
0
        public IRenderTargetBitmapImpl CreateLayer(Size size)
        {
            var target = _externalRenderTargetProvider.GetOrCreateRenderTarget();

            return(D2DRenderTargetBitmapImpl.CreateCompatible(
                       _wicFactory,
                       _dwFactory,
                       target,
                       size));
        }
        public IRenderTargetBitmapImpl CreateLayer(Size size)
        {
            if (_deviceContext == null)
            {
                CreateSwapChain();
            }

            return(D2DRenderTargetBitmapImpl.CreateCompatible(
                       WicImagingFactory,
                       DirectWriteFactory,
                       _deviceContext,
                       size));
        }
示例#5
0
        public static void Save(SharpDX.Direct2D1.BitmapRenderTarget bitmap, string filename)
        {
            var rtb = new D2DRenderTargetBitmapImpl(bitmap);

            rtb.Save(filename);
        }
示例#6
0
 public IDrawingContextLayerImpl CreateLayer(Size size)
 {
     return(D2DRenderTargetBitmapImpl.CreateCompatible(_renderTarget, size));
 }
示例#7
0
 public IDrawingContextLayerImpl CreateLayer(Size size)
 {
     var renderTarget = _externalRenderTargetProvider.GetOrCreateRenderTarget();
     return D2DRenderTargetBitmapImpl.CreateCompatible(renderTarget, size);
 }