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