bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Linux SDK Price List
    • Multi-Platform Toolkit for .Net/Docker Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
  • Products
    • Barcode Reader Toolkit for Windows
    • Barcode Reader Toolkit for Linux
    • BardecodeFiler Application Desktop Only
    • BardecodeFiler Application & Windows Service
    • Windows DOS Command Prompt Barcode Tool
    • Multi-Platform Barcode Reader Toolkit for .Net Standard on Docker
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • 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 © 2021 Softek Software Ltd. All Rights Reserved