get Reduce RectF - Android Graphics

Android examples for Graphics:Rectangle

Description

get Reduce RectF

Demo Code


//package com.java2s;

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);/*  w ww . j  a  va 2 s  .  com*/
        return rectF;
    }
}

Related Tutorials