public class Bitmaps extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
UNCONSTRAINED |
| Constructor and Description |
|---|
Bitmaps() |
| Modifier and Type | Method and Description |
|---|---|
static int |
computeSampleSize(android.graphics.BitmapFactory.Options options,
int minSideLength,
int maxNumOfPixels)
Compute the sample size as a function of minSideLength and maxNumOfPixels.
|
static android.graphics.Bitmap |
makeBitmap(int minSideLength,
int maxNumOfPixels,
String pathName,
android.graphics.BitmapFactory.Options options)
Make a bitmap from a given Uri.
|
static android.graphics.Bitmap |
rotate(android.graphics.Bitmap b,
int degrees)
Rotates the bitmap by the specified degree.
|
static android.graphics.Bitmap |
rotate(android.graphics.Bitmap b,
int degrees,
android.graphics.Matrix m)
Rotates the bitmap by the specified degree.
|
static android.graphics.Bitmap |
transform(android.graphics.Matrix scaler,
android.graphics.Bitmap source,
int targetWidth,
int targetHeight,
boolean scaleUp,
boolean recycle) |
public static final int UNCONSTRAINED
public static android.graphics.Bitmap rotate(android.graphics.Bitmap b,
int degrees)
b - bitmap objectdegrees - rotate degreespublic static android.graphics.Bitmap rotate(android.graphics.Bitmap b,
int degrees,
android.graphics.Matrix m)
b - bitmap objectdegrees - rotate degreesm - matrix objectpublic static int computeSampleSize(android.graphics.BitmapFactory.Options options,
int minSideLength,
int maxNumOfPixels)
options - bitmap factory optionsminSideLength - minimum side lengthmaxNumOfPixels - max numbers of pixelspublic static android.graphics.Bitmap transform(android.graphics.Matrix scaler,
android.graphics.Bitmap source,
int targetWidth,
int targetHeight,
boolean scaleUp,
boolean recycle)
public static android.graphics.Bitmap makeBitmap(int minSideLength,
int maxNumOfPixels,
String pathName,
android.graphics.BitmapFactory.Options options)
minSideLength - side lengthmaxNumOfPixels - max number of pixelspathName - path nameoptions - bitmap factory optionsCopyright © 2019. All rights reserved.