【问题标题】:How to resize pixel of WriteableBitmap (windows store c#)如何调整WriteableBitmap的像素大小(windows store c#)
【发布时间】:2014-04-10 08:22:55
【问题描述】:

我在很多论坛上搜索,都没有得到我想要的。

我的问题很简单:如何调整 WriteableBitmap 的像素大小,例如从 300*300 到 500*500

【问题讨论】:

    标签: c# windows-store-apps writeablebitmap


    【解决方案1】:

    查看WritableBitmapEx 项目。您可以使用它或学习如何调整图像大小。 使用WritableBitmapEx 扩展方法很容易做到这一点。

    // Resizes the WriteableBitmap to 200px wide and 300px high using a bilinear interpolation method
    var resized = writeableBmp.Resize(200, 300, WriteableBitmapExtensions.Interpolation.Bilinear);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-02-13
      • 1970-01-01
      • 2010-12-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多