【问题标题】:WriteableBitmap extension method FillEllipse is creating artifacts on edges of the imageWriteableBitmap 扩展方法 FillEllipse 在图像边缘创建伪影
【发布时间】:2019-11-05 11:24:21
【问题描述】:

我将 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);
}

问题说明:

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

非常感谢:)

【问题讨论】:

    标签: c# writeablebitmap writeablebitmapex


    【解决方案1】:

    在 GitHub 项目网站上也可以看到这个问题: https://github.com/reneschulte/WriteableBitmapEx/issues/48

    有机会我会去看看。

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

    【讨论】:

    • 这已在 GitHub 上的最新版本中修复。 NuGet 包也将得到更新。见 v1.6.5
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-08-16
    • 1970-01-01
    • 2018-08-24
    • 2015-11-24
    • 1970-01-01
    • 1970-01-01
    • 2023-03-08
    相关资源
    最近更新 更多