Code example for BlurMaskFilter

0
	 * @param value 
	 *           the new blur 
	 */ 
	public void setBlur( int value ) {
		if ( value > 0 ) {
			mPaint.setMaskFilter( new BlurMaskFilter( value, Blur.NORMAL ) );
		} else { 
			mPaint.setMaskFilter( null );
		} 
	} 
 
	/* 
	 * (non-Javadoc) 
	 *  
	 * @see android.graphics.drawable.Drawable#draw(android.graphics.Canvas) 
	 */ 
	@Override 
	public void draw( final Canvas canvas ) {
		final RectF rect = new RectF( getBounds() );
		canvas.drawCircle( rect.centerX(), rect.centerY(), mRadius, mPaint );