get Reduce Rect F - Android android.graphics

Android examples for android.graphics:RectF

Description

get Reduce Rect F

Demo Code

import android.graphics.RectF;

public class Main {

  public static RectF getReduceRectF(RectF aRectF, int aReduceSize) {
    RectF rectF = new RectF(aRectF.left + aReduceSize, aRectF.top + aReduceSize, aRectF.right - aReduceSize,
        aRectF.bottom - aReduceSize);/*from  w w w . ja  v  a  2  s . co  m*/
    return rectF;
  }

}

Related Tutorials