public class RectI
extends android.graphics.RectF
| Constructor and Description |
|---|
RectI() |
RectI(float left,
float top,
float right,
float bottom) |
RectI(android.graphics.Rect r) |
RectI(android.graphics.RectF r) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPadding(float padding) |
static RectI |
generateCenteredRect(float imageWidth,
float imageHeight,
float viewWidth,
float viewHeight)
Gets the rectangular position of a Bitmap if it were placed inside a View
with scale type set to
#CENTER_INSIDE. |
android.graphics.Rect |
round() |
android.graphics.Rect |
roundOut() |
void |
sampleSize(float sample) |
void |
scaleCentered(float scale) |
void |
scaleSize(float scale) |
centerX, centerY, contains, contains, contains, describeContents, equals, hashCode, height, inset, intersect, intersect, intersects, intersects, isEmpty, offset, offsetTo, readFromParcel, round, roundOut, set, set, set, setEmpty, setIntersect, sort, toShortString, toString, union, union, union, width, writeToParcelpublic RectI()
public RectI(float left,
float top,
float right,
float bottom)
public RectI(android.graphics.RectF r)
public RectI(android.graphics.Rect r)
public android.graphics.Rect round()
public android.graphics.Rect roundOut()
@NonNull public static RectI generateCenteredRect(float imageWidth, float imageHeight, float viewWidth, float viewHeight)
#CENTER_INSIDE.imageWidth - the Bitmap's widthimageHeight - the Bitmap's heightviewWidth - the parent View's widthviewHeight - the parent View's heightpublic void sampleSize(float sample)
public void scaleSize(float scale)
public void addPadding(float padding)
public void scaleCentered(float scale)