Code example for Camera.Parameters

Methods: set, setPictureFormat

0
			int height) {
		if (mPreviewRunning) {
			mCamera.stopPreview();
		} 
		Parameters params = mCamera.getParameters();
		params.setPictureFormat(PixelFormat.JPEG);// ����ͼƬ��ʽ
		// params.setPreviewSize(width, height); 
		params.set("rotation", 90);
		mCamera.setParameters(params);
		try { 
			mCamera.setPreviewDisplay(holder);
		} catch (IOException e) {
			e.printStackTrace();
		} 
		mCamera.startPreview();
		mPreviewRunning = true;
	} 
 
	private AutoFocusCallback mAutoFocusCallBack = new AutoFocusCallback() {
		@Override 
		public void onAutoFocus(boolean success, Camera camera) {