DJI Mobile SDK Documentation

class DJIBitmapDescriptorFactory

class DJIBitmapDescriptorFactory
Package:com.dji.mapkit.core.models
Description:

Used to create instances of DJIBitmapDescriptor.

Class Members:
method
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.

Input Parameters:
String assetNameThe name of a bitmap in the assets directory.
Return:
static DJIBitmapDescriptorA DJIBitmapDescriptor object.
method fromBitmap
static DJIBitmapDescriptor fromBitmap(Bitmap image)
Package:com.dji.mapkit.core.models
Description:

Creates a DJIBitmapDescriptor from the given Bitmap.

Input Parameters:
Bitmap imageA Bitmap image.
Return:
static DJIBitmapDescriptorA `DJIBitmapDescriptor object.
method
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.

Input Parameters:
String fileNameThe name of the bitmap image file.
Return:
static DJIBitmapDescriptorA DJIBitmapDescriptor object.
method
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.

Input Parameters:
String pathThe absolute file path of the bitmap image file.
Return:
static DJIBitmapDescriptorA `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.

Input Parameters:
int resourceIdThe resource id of a bitmap image.
Return:
static DJIBitmapDescriptorA DJIBitmapDescriptor object.