public final class BitmapDescriptorFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static float |
HUE_AZURE |
static float |
HUE_BLUE |
static float |
HUE_CYAN |
static float |
HUE_GREEN |
static float |
HUE_MAGENTA |
static float |
HUE_ORANGE |
static float |
HUE_RED |
static float |
HUE_ROSE |
static float |
HUE_VIOLET |
static float |
HUE_YELLOW |
public static final float HUE_RED
public static final float HUE_ORANGE
public static final float HUE_YELLOW
public static final float HUE_GREEN
public static final float HUE_CYAN
public static final float HUE_AZURE
public static final float HUE_BLUE
public static final float HUE_VIOLET
public static final float HUE_MAGENTA
public static final float HUE_ROSE
public static void attachMapContext(TencentMapContext mapContext)
public static BitmapDescriptor fromResource(int resId)
public static BitmapDescriptor fromAsset(java.lang.String assetName)
public static BitmapDescriptor fromFile(java.lang.String filename)
public static BitmapDescriptor fromPath(java.lang.String filename)
public static BitmapDescriptor fromBitmap(Bitmap bitmap)
public static BitmapDescriptor fromView(View view)
public static BitmapDescriptor defaultMarker()
public static BitmapDescriptor defaultMarker(float color)
public static BitmapDescriptor fromResource(TencentMapContext context, int resId)
BitmapDescriptor
resId
- 资源idpublic static BitmapDescriptor fromAsset(TencentMapContext context, java.lang.String assetName)
BitmapDescriptor
assetName
- public static BitmapDescriptor fromFile(TencentMapContext context, java.lang.String filename)
BitmapDescriptor
filename
- 文件名public static BitmapDescriptor fromPath(TencentMapContext context, java.lang.String filename)
BitmapDescriptor
filename
- 绝对路径指定的文件public static BitmapDescriptor defaultMarker(TencentMapContext context)
BitmapDescriptor
public static BitmapDescriptor defaultMarker(TencentMapContext context, float color)
BitmapDescriptor
color
- 参见HUE_RED
常数public static BitmapDescriptor fromBitmap(TencentMapContext context, Bitmap bitmap)
BitmapDescriptor
bitmap
- public static BitmapDescriptor fromView(TencentMapContext context, View view)
view
- View对象