public class ColorMap
extends java.lang.Object
FastUniformHeatmapRenderableSeries
Modifier and Type | Field and Description |
---|---|
int[] |
colors
The color map colors
|
float[] |
stops
The color map stop points
|
Constructor and Description |
---|
ColorMap(int[] colors,
float[] stops)
Creates a new instance of
ColorMap class |
ColorMap(int startColor,
int endColor)
Creates a new instance of
ColorMap class |
Modifier and Type | Method and Description |
---|---|
static android.graphics.Bitmap |
createColorMapBitmap(ColorMap colorMap,
int width,
int height)
Helper method which creates
Bitmap from ColorMap instance |
public final int[] colors
public final float[] stops
public ColorMap(int[] colors, float[] stops)
ColorMap
classcolors
- The colors used by this color mapstops
- The stops used by this color mappublic ColorMap(int startColor, int endColor)
ColorMap
classstartColor
- The start colorendColor
- The end colorpublic static android.graphics.Bitmap createColorMapBitmap(ColorMap colorMap, int width, int height)
Bitmap
from ColorMap
instancecolorMap
- The color mapwidth
- The width of bitmapheight
- The height of bitmapBitmap
instance