Code example for BitmapDrawable

Methods: draw

0
     *            Canvas to draw the image on. 
     */ 
    public void draw( Canvas canvas )
    { 
        if( drawable != null )
            drawable.draw( canvas );
    } 
     
    /** 
     * Sets the alpha value of the image. 
     *  
     * @param alpha 
     *            alpha value. 
     */ 
    public void setAlpha( int alpha ) 
    { 
        if( drawable != null )
            drawable.setAlpha( alpha );
    } 
}