예제 #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);
        }
예제 #2
0
 public DUIGraphics_D2D(DUIBitmap bitmap) : this(new DUIWICRenderTarget(bitmap))
 {
 }
예제 #3
0
 public static DUIGraphics FromImage(DUIBitmap image)
 {
     return(new DUIGraphics(image));
 }
예제 #4
0
 private DUIGraphics(DUIBitmap dUIBitmap)
 {
     this.iDUIGraphics = new DUIGraphics_D2D(dUIBitmap);
 }