Ejemplo n.º 1
0
        public DUIWICRenderTarget(DUIBitmap image)
        {
            System.Threading.Monitor.Enter(lockObj);
            RenderTargetProperties renderTargetProperties = new RenderTargetProperties
            {
                Type        = RenderTargetType.Default,
                DpiX        = 96.0f,
                DpiY        = 96.0f,
                PixelFormat = new PixelFormat(Format.Unknown, SharpDX.Direct2D1.AlphaMode.Unknown),
                Usage       = RenderTargetUsage.None,
                MinLevel    = FeatureLevel.Level_DEFAULT
            };

            this.wicRenderTarget = new SharpDX.Direct2D1.WicRenderTarget(d2dFactory, image, renderTargetProperties);
        }
Ejemplo n.º 2
0
 public DUIGraphics_D2D(DUIBitmap bitmap) : this(new DUIWICRenderTarget(bitmap))
 {
 }
Ejemplo n.º 3
0
 public static DUIGraphics FromImage(DUIBitmap image)
 {
     return(new DUIGraphics(image));
 }
Ejemplo n.º 4
0
 private DUIGraphics(DUIBitmap dUIBitmap)
 {
     this.iDUIGraphics = new DUIGraphics_D2D(dUIBitmap);
 }