class DJIBitmapDescriptorFactory
class DJIBitmapDescriptorFactory
|
Package: | com.dji.mapkit.core.models |
Description:
Used to create instances of DJIBitmapDescriptor.
Class Members:
method fromAsset
static DJIBitmapDescriptor fromAsset(String assetName)
|
Package: | com.dji.mapkit.core.models |
Description:
Creates a DJIBitmapDescriptor using the name of a bitmap file in the assets directory.
String assetName | The name of a bitmap in the assets directory. |
Return:
static DJIBitmapDescriptor | A DJIBitmapDescriptor object. |
method fromBitmap
static DJIBitmapDescriptor fromBitmap(Bitmap image)
|
Package: | com.dji.mapkit.core.models |
Description:
Creates a DJIBitmapDescriptor from the given Bitmap.
Bitmap image | A Bitmap image. |
Return:
static DJIBitmapDescriptor | A `DJIBitmapDescriptor object. |
method fromFile
static DJIBitmapDescriptor fromFile(String fileName)
|
Package: | com.dji.mapkit.core.models |
Description:
Creates a DJIBitmapDescriptor using the name of a bitmap image file located in the internal storage.
String fileName | The name of the bitmap image file. |
Return:
static DJIBitmapDescriptor | A DJIBitmapDescriptor object. |
method fromPath
static DJIBitmapDescriptor fromPath(String path)
|
Package: | com.dji.mapkit.core.models |
Description:
Creates a DJIBitmapDescriptor from the absolute file path of a bitmap image.
String path | The absolute file path of the bitmap image file. |
Return:
static DJIBitmapDescriptor | A `DJIBitmapDescriptor object. |
method fromResource
static DJIBitmapDescriptor fromResource(int resourceId)
|
Package: | com.dji.mapkit.core.models |
Description:
Creates a DJIBitmapDescriptor from the resource id of a bitmap image.
int resourceId | The resource id of a bitmap image. |
Return:
static DJIBitmapDescriptor | A DJIBitmapDescriptor object. |