Code example for Camera.Parameters

Methods: getPictureSize

0
        super.onDraw(canvas);
    } 
    public Rect Rectangle() {
    	if (mRect.isEmpty() )
    			mRect.set(width/3, height/3, 2*width/3, height/2) ;
    	Camera.Size cSize = parameters.getPictureSize();
    	float scalefactorx = (float)cSize.width  / (float)width ; 
    	float scalefactory = (float)cSize.height / (float)height ; 
    	Rect sizedRect   = new Rect();
    	sizedRect.left   = (int) ((float) mRect.left  *scalefactorx);
    	sizedRect.top    = (int) ((float) mRect.top   *scalefactory);
    	sizedRect.right  = (int) ((float) mRect.right *scalefactorx);
    	sizedRect.bottom = (int) ((float) mRect.bottom*scalefactory); 
    	return sizedRect ;
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE