// -*- mode: objc; mode: hs-minor; -*- 12 /* * It may not always be necessary for an application to scan all the * way to the edges of the image. By cropping the scan area, you can * get most of the benefits of reduced resolution without sacrificing * the minimum feature size. Cropping will also not affect image * noise, but similar to decreasing the resolution, it does affect the * maximum size barcode that can be scanned. * * For all cases you set the crop rectangle scanCrop property. Note * that the rectangle provided to the controller is normalized across * image size and rotation. This means that the coordinates range from * 0 to 1 and the axes will be arranged such that the x-axis of the * crop rectangle corresponds to the major (longer) image axis. * * Your interface will typically need to indicate the cropped scan * area to the user with visual queues. Use the cameraOverlayView to * provide this. * * By default, the ZBarReaderView recognizes a pinch gesture to * digitally zoom the preview around the center of the image. This * zoom does not affect the resolution of the image, but it does crop * the scan region to the visible area. You can also disable the pinch * gesture and set the zoom programmatically. * */