【问题标题】:How to adjust ZXing on windows phone store app 8.1 camera (MediaCapture) preview size (full screen)?如何在 windows phone store app 8.1 camera (MediaCapture) 预览大小(全屏)上调整 ZXing?
【发布时间】:2014-05-20 14:31:57
【问题描述】:

我的项目在这里:(https://github.com/79144876/ZXingStoreApp) 我在我的 windows phone 8.1 项目中添加了 zxing。这里的 Zxing 库:(https://zxingnet.codeplex.com/SourceControl/latest#trunk/Clients/WindowsRTDemo/MainPage.xaml.cs) 但是预览大小不是全屏的。那么,有谁知道如何更改预览大小? 我有 SetResolution,但仍然不是全屏。 谢谢。

【问题讨论】:

    标签: windows-runtime zxing


    【解决方案1】:

    在我的代码中我这样做

    _capture.SetPreviewRotation(VideoRotation.Clockwise90Degrees);
    _capture.SetPreviewMirroring(true);
    CaptureView.Source = _capture;
    CaptureView.Stretch = Stretch.UniformToFill;
    

    在您的情况下,将 CaptureView 替换为 VideoCapture

    但是现在 zxing 用于通用应用程序的工作很糟糕。 MediaCapture 不是从相机获取数据的好选择:(

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-05
      • 1970-01-01
      • 1970-01-01
      • 2015-03-02
      相关资源
      最近更新 更多