Code example for Rect

Methods: heightwidth

    describeBitmap(bitmap, paint);
    StringBuilder descriptionBuilder = new StringBuilder();
    if (dst != null) {
      descriptionBuilder.append(" at (").append(dst.left).append(",").append(
          .append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
    if (src != null) {
      descriptionBuilder.append( " taken from ").append(src.toString());
  public void drawBitmap(Bitmap bitmap, Matrix matrix, Paint paint) {
    describeBitmap(bitmap, paint);
    appendDescription(" transformed by matrix"); 
Stop searching for code, let great code find you!  Add Codota to your java IDE