【问题标题】:Capturing images with blended images in nokia imaging sdk在诺基亚成像 sdk 中使用混合图像捕获图像
【发布时间】:2014-12-19 16:19:38
【问题描述】:

我正在使用诺基亚成像 sdk 制作 windows phone 应用程序,应用程序示例是 real time blend demo

我正在尝试使用图像叠加图像捕获图像,即在其顶部具有其他图像的图像,如上面的实时相机流中的示例,下面是我正在尝试捕获具有效果的图像的代码

        CameraCaptureSequence cameraCaptureSequence = App.Camera.CreateCaptureSequence(1);

        MemoryStream stream  = new MemoryStream();

        cameraCaptureSequence.Frames[0].CaptureStream = stream.AsOutputStream();

        await App.Camera.PrepareCaptureSequenceAsync(cameraCaptureSequence);
        await cameraCaptureSequence.StartCaptureAsync();

        stream.Seek(0, SeekOrigin.Begin);

        MediaLibrary library = new MediaLibrary();
        library.SavePictureToCameraRoll("picture1.jpg", stream);

但是上面的代码只保存了没有效果的图像,那么如何从相机中捕获具有实时混合效果的图像。

【问题讨论】:

    标签: c# xaml windows-phone-8 nokia-imaging-sdk lumia-imaging-sdk


    【解决方案1】:

    基本上,您要做的就是将预览中的相同效果/滤镜附加到一个新的图像源,取而代之的是捕获的照片流。并且可能也使用不同的渲染器。

    或者为捕获设置一组重复的过滤器。有理由,你可以例如在预览中配置较低质量的效果以提高性能。

    【讨论】:

      猜你喜欢
      • 2014-11-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-14
      • 2014-05-18
      • 1970-01-01
      相关资源
      最近更新 更多