sdt.brc.android
Class BarcodeReaderUtil

java.lang.Object
  extended by sdt.brc.android.BarcodeReaderUtil

public class BarcodeReaderUtil
extends Object

Android helper class. Provide several useful static methods.


Constructor Summary
BarcodeReaderUtil()
           
 
Method Summary
static Bitmap decodeImageToBitmap(YuvImage yuvImg)
           
static void savePictureToJpegOnSDCard(YuvImage yuvImg, int quality, String folderPath, String fileName)
          Method save image to JPEG compressed file on SD card
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarcodeReaderUtil

public BarcodeReaderUtil()
Method Detail

savePictureToJpegOnSDCard

public static void savePictureToJpegOnSDCard(YuvImage yuvImg,
                                             int quality,
                                             String folderPath,
                                             String fileName)
Method save image to JPEG compressed file on SD card

Parameters:
yuvImg - input image
quality - JPEG quality value from 0 to 100
folderPath - folder on SD card where the file will be stored
fileName - file name

decodeImageToBitmap

public static Bitmap decodeImageToBitmap(YuvImage yuvImg)