Code example for Camera.Parameters

Methods: getPictureSize

0
            } 
 
            try { 
                if (null != camera) {
                    Camera.Parameters parameters = camera.getParameters();
                    Size size = parameters.getPictureSize();
                    Log.v(TAG, "size:" + size.width + "," + size.height);          
                    eyeDected(data,size.width,size.height);
                } 
            } catch (Exception ex) {
                Log.v(TAG, "eye dected failed");
            } 
        } 
    } 
 
    private void eyeDected (byte[] data,int width,int height) {
     
        Log.v(TAG, "mLastOrientation:" + mLastOrientation);
 
        int Orientation = 0;