【发布时间】:2014-12-19 16:04:26
【问题描述】:
我正盯着 Nokia Imaging SDK 试一试。现在,我面临的问题是我有一个已经存在的图像(在我的 Visual Studio 解决方案的文件夹中),我想转换这个图像以便在 BlendFilter 类中使用它诺基亚成像 SDK。但是我不知道怎么用。
我试图转换流中的现有图像,然后将其作为参数传递给 BlendFilter 构造函数。但不是运气。编译器说最好的重载方法 match ... 有一些无效的参数。
这是我尝试将现有图像加载到流中的方式:
Image image = new Image();
image.Source = new BitmapImage(new Uri("/Images/Template3.2.png", UriKind.Relative));
BitmapImage bitImage = new BitmapImage(new Uri("/Images/Template3.2.png", UriKind.Relative));
WriteableBitmap Bitmap = new WriteableBitmap(bitImage);
然后:
var BlendFilter = new BlendFilter(bitImage, BlendFunction.Add); --> the compiler error is here
有人知道如何使用 BlendFilter 类吗?任何例子都会很有帮助。
问候!
【问题讨论】:
标签: c# windows-phone-8 visual-studio-2013 nokia-imaging-sdk lumia-imaging-sdk