Code example for Rect

Methods: heightwidth

0
    describeBitmap(bitmap, paint);
 
    StringBuilder descriptionBuilder = new StringBuilder();
    if (dst != null) {
      descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
          .append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
    } 
 
    if (src != null) {
      descriptionBuilder.append( " taken from ").append(src.toString());
    } 
    appendDescription(descriptionBuilder.toString());
  } 
 
  @Implementation 
  public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) {
    describeBitmap(bitmap, paint);
 
    appendDescription(" transformed by matrix"); 
  }