0

我将 WriteableBitmap 与 WriteableBitmapEx 一起使用,特别是 FillEllipse 方法,当我调用 FillEllipse 时,椭圆的一部分被绘制在图像之外,它会导致图像边缘出现伪影。

一些用于说明的代码:

public WriteableBitmap TestImage { get; set; } = BitmapFactory.New(500, 500);
...
using (TestImage.GetBitmapContext())
{
    TestImage.FillEllipse(-150, 200, -150 + 200, 200 + 200, Colors.Red);
}

问题说明:

在此处输入图像描述

如您所见,由于某种未知原因,垂直靠近绘制的圆圈的图像边缘是红色的。有谁知道是什么原因造成的以及如何解决它?

非常感谢 :)

4

1 回答 1

0

另请参阅 GitHub 项目站点上的此问题: https ://github.com/reneschulte/WriteableBitmapEx/issues/48

有机会我会去看看。

[更新 01/13/2020] 这已在 GitHub 上的最新版本中修复。NuGet 包也将得到更新。见 v1.6.5

于 2019-11-05T12:04:10.480 回答