java.lang.Object | |
↳ | com.carto.utils.BitmapUtils |
A helper class for loading bitmaps and converting Bitmaps to Android Bitmaps an vice versa.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Bitmap |
createAndroidBitmapFromBitmap(Bitmap bitmap)
Creates a new Android Bitmap from an existing Bitmap.
| ||||||||||
static Bitmap |
createBitmapFromAndroidBitmap(Bitmap androidBitmap)
Creates a new Bitmap object from an existing Android Bitmap.
| ||||||||||
synchronized void | delete() | ||||||||||
static Bitmap |
loadBitmapFromAssets(String assetPath)
Loads the specified bitmap asset bundled with the application.
| ||||||||||
static Bitmap |
loadBitmapFromFile(String filePath)
Loads bitmap from specified file.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new Android Bitmap from an existing Bitmap.
bitmap | The existing bitmap. |
---|
Creates a new Bitmap object from an existing Android Bitmap.
androidBitmap | The reference Android bitmap. |
---|
Loads the specified bitmap asset bundled with the application.
assetPath | The asset path to the image to be loaded. |
---|
Loads bitmap from specified file.
filePath | The path to the image to be loaded. |
---|