Code example for Canvas

Methods: concat, restoreToCount, save

0
	 *           the source 
	 */ 
	public void draw( final Canvas canvas, final Matrix source ) {
 
		final Matrix matrix = new Matrix( source );
		matrix.invert( matrix );
 
		final int saveCount = canvas.save();
		canvas.concat( matrix );
		canvas.concat( mRotateMatrix );
 
		mContent.setBounds( (int) mDrawRect.left, (int) mDrawRect.top, (int) mDrawRect.right, (int) mDrawRect.bottom );
		mContent.draw( canvas );
 
		canvas.restoreToCount( saveCount );
	} 
 
	/** 
	 * Returns the cropping rectangle in image space. 
	 *  
	 * @return the crop rect