Util class for manipulating images.
More...
|
static Bitmap | resizeImage (Bitmap bitmapOrg, int newWidth, int newHeight) |
| Resize the image. More...
|
|
static Bitmap | resizeImage (Bitmap bitmapOrg, float scale) |
| Resize the image. More...
|
|
static Bitmap | rotate (Bitmap b, float degrees) |
|
static Bitmap | LoadImageFromInternet (final String uri) throws Exception |
| Download the file from Internet. More...
|
|
static Bitmap | mergeBitmaps (Bitmap bmp1, Bitmap bmp2) |
| Merge two bitmas in to one. More...
|
|
static int | linearInterpolate (int A, int B, int l, int L) |
| Linear interpolation between two points. More...
|
|
static void | storeView (View view, String path, String fileName) throws IOException |
| Save the view in the the storage. More...
|
|
static void | storeView (View view, File path, String fileName) throws IOException |
| Save the view in the the storage. More...
|
|
static Bitmap | getBitmapFromView (View view) |
| Generate a Bitmap from a view. More...
|
|
|
static final int | TIME_OUT_CONNECTION = 15000 |
|
Util class for manipulating images.
static Bitmap com.beyondar.android.util.ImageUtils.getBitmapFromView |
( |
View |
view | ) |
|
|
static |
Generate a Bitmap from a view.
- Parameters
-
view | The view to convert to Bitmap |
- Returns
- A bitmap representing the view.
static int com.beyondar.android.util.ImageUtils.linearInterpolate |
( |
int |
A, |
|
|
int |
B, |
|
|
int |
l, |
|
|
int |
L |
|
) |
| |
|
static |
static Bitmap com.beyondar.android.util.ImageUtils.LoadImageFromInternet |
( |
final String |
uri | ) |
throws Exception |
|
static |
Download the file from Internet.
- Parameters
-
- Returns
- Exceptions
-
static Bitmap com.beyondar.android.util.ImageUtils.mergeBitmaps |
( |
Bitmap |
bmp1, |
|
|
Bitmap |
bmp2 |
|
) |
| |
|
static |
Merge two bitmas in to one.
- Parameters
-
- Returns
static Bitmap com.beyondar.android.util.ImageUtils.resizeImage |
( |
Bitmap |
bitmapOrg, |
|
|
int |
newWidth, |
|
|
int |
newHeight |
|
) |
| |
|
static |
Resize the image.
- Parameters
-
bitmapOrg | The original bitmap |
newWidth | The new with |
newHeight | The new height |
- Returns
static Bitmap com.beyondar.android.util.ImageUtils.resizeImage |
( |
Bitmap |
bitmapOrg, |
|
|
float |
scale |
|
) |
| |
|
static |
Resize the image.
- Parameters
-
bitmapOrg | The original bitmap |
scale | Scale to resize |
- Returns
static void com.beyondar.android.util.ImageUtils.storeView |
( |
View |
view, |
|
|
String |
path, |
|
|
String |
fileName |
|
) |
| throws IOException |
|
static |
Save the view in the the storage.
This can be used to set a static view to a BeyondarObject. Remember that in order to use this feature you may need to set Manifest.permission#WRITE_EXTERNAL_STORAGE permission in your application manifest.
This method uses PNG compression.
- Parameters
-
view | The view to be stored. |
path | The path where it will be saved |
fileName | The name of the image |
- Exceptions
-
static void com.beyondar.android.util.ImageUtils.storeView |
( |
View |
view, |
|
|
File |
path, |
|
|
String |
fileName |
|
) |
| throws IOException |
|
static |
Save the view in the the storage.
This can be used to set a static view to a BeyondarObject#. Remember that in order to use this feature you may need to set Manifest.permission#WRITE_EXTERNAL_STORAGE permission in your application manifest.
This method uses PNG compression.
- Parameters
-
view | The view to be stored. |
path | The path where it will be saved |
fileName | The name of the image |
- Exceptions
-
The documentation for this class was generated from the following file:
- src/com/beyondar/android/util/ImageUtils.java