我正在盯着诺基亚成像SDK玩它.现在,我遇到的问题是我已经存在一个Image(在我的visual studio解决方案的文件夹中),我想转换这个图像,以便在Nokia Imaging SDK的BlendFilter类中使用它.但是我不知道如何使用它.
我试图转换流中的现有图像,然后将其作为参数传递给BlendFilter构造函数.但不是运气.编译器说最好的重载方法匹配...有一些无效的参数.
这是我尝试将现有图像加载到流的方式:
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类?任何一个例子都会非常有帮助.
问候!