bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • Linux SDK Price List
    • Linux SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Multi-Platform Toolkit for .NET Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
    • Terms and Conditions
    • Refund Policy
  • Products
    • Softek Barcode Reader Toolkit for Windows
    • Softek Barcode Reader Toolkit for Linux
    • BardecodeFiler Desktop App
    • BardecodeFiler Windows Service
    • Windows DOS Command Prompt Tool
    • Multi-platform barcode reader toolkit for .NET
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Terms and Conditions
    • Resellers
    • Links
Select Page ...

News

Video Preview Frame Size

admin November 27, 2012 Software Development Kits No Comments

Developers working with our Barcode Reader SDK for IOS may have noticed that the video preview window no longer fills the entire screen in our example XCode project. The following screen shot shows the problem with out the bars at the top and bottom of the screen…

To make the preview screen fill the entire screen (or at least the entire size of the delegates view) and do the following:

 

  1. Edit the Bardecode.m source file.
  2. Search for ResizePreview function.
  3. Locate the line “PreviewLayer.frame= aView.bounds;” and replace with the following code.

 

CGRect bounds=aView.layer.bounds;

PreviewLayer.videoGravity = AVLayerVideoGravityResizeAspectFill;

PreviewLayer.bounds=bounds;

PreviewLayer.position=CGPointMake(CGRectGetMidX(bounds), CGRectGetMidY(bounds));

 

← How to Restore Default Settings in BardecodeFiler
Regular expressions under 7.5.1.18 →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved