我将 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);
}
问题说明:
如您所见,由于某种未知原因,垂直靠近绘制的圆圈的图像边缘是红色的。有谁知道是什么原因造成的以及如何解决它?
非常感谢 :)