OSDN Git Service

ClearTypeが効くようにした
authorgdkhd812 <test@yahoo.co.jp>
Thu, 6 Apr 2017 13:27:57 +0000 (22:27 +0900)
committergdkhd812 <test@yahoo.co.jp>
Thu, 6 Apr 2017 13:27:57 +0000 (22:27 +0900)
Core/Direct2D/D2DRenderCommon.cs

index 3074cbd..20f2648 100644 (file)
@@ -870,7 +870,7 @@ namespace FooEditEngine
             this.GetDpi(out dpiX, out dpiY);
             D2D.RenderTargetProperties prop = new D2D.RenderTargetProperties(
                 D2D.RenderTargetType.Default,
-                new D2D.PixelFormat(DXGI.Format.B8G8R8A8_UNorm, D2D.AlphaMode.Ignore),
+                new D2D.PixelFormat(DXGI.Format.B8G8R8A8_UNorm, D2D.AlphaMode.Premultiplied),
                 dpiX,
                 dpiY,
                 D2D.RenderTargetUsage.None,
@@ -883,7 +883,7 @@ namespace FooEditEngine
             D2D.BitmapProperties bmpProp = new D2D.BitmapProperties();
             bmpProp.DpiX = dpiX;
             bmpProp.DpiY = dpiY;
-            bmpProp.PixelFormat = new D2D.PixelFormat(DXGI.Format.B8G8R8A8_UNorm, D2D.AlphaMode.Ignore);
+            bmpProp.PixelFormat = new D2D.PixelFormat(DXGI.Format.B8G8R8A8_UNorm, D2D.AlphaMode.Premultiplied);
             this.cachedBitMap = new D2D.Bitmap(this.render, new SharpDX.Size2((int)width, (int)height), bmpProp);
             this.hasCache = false;