Code example for BitmapDrawable

0
  private Matrix matrix;
  private int imageLevel;
 
  @Implementation 
  public void setImageBitmap(Bitmap imageBitmap) {
    setImageDrawable(new BitmapDrawable(imageBitmap));
    this.imageBitmap = imageBitmap;
  } 
 
  @Deprecated 
  public Bitmap getImageBitmap() {
    return imageBitmap;
  } 
 
  @Implementation 
  public void setImageDrawable(Drawable drawable) {
    this.imageDrawable = drawable;
  } 
 
  @Implementation 
  public void setImageResource(int resId) {