Code example for ComposeShader

0
                    Shader.TileMode.REPEAT );
            LinearGradient sh2 = new LinearGradient( 0f, mBit.getHeight(), 0f,
                    mBit.getHeight() / 3, 0x7f000000, 0x00000000,
                    Shader.TileMode.CLAMP );
            Xfermode mode = new PorterDuffXfermode( PorterDuff.Mode.DST_IN );
            mReflectionShader = new ComposeShader( sh1, sh2, mode );
 
            mCamera = new Camera();
            mCamera.rotateY( cR );
            mCamera.translate( cX, cY, 0 );
        } 
    } 
 
    public Bitmap getArtwork() {
    	return mBit;
    } 
     
    private void drawArtwork( Canvas canvas )
    { 
 
        if ( mBit == null )