[英]WriteableBitmap extension method FillEllipse is creating artifacts on edges of the image
我将 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);
}
问题说明:
如您所见,由于某种未知原因,垂直靠近绘制的圆圈的图像边缘是红色的。 有谁知道是什么原因造成的以及如何解决它?
非常感谢:)
另请参阅 GitHub 项目站点上的此问题: https://github.com/reneschulte/WriteableBitmapEx/issues/48
有机会我会去看看。
[2020 年 1 月 13 日更新] 此问题已在 GitHub 的最新版本中修复。 NuGet 包也将得到更新。 见 v1.6.5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.