public class ImageManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
float |
screenScale |
| Constructor and Description |
|---|
ImageManager(android.content.res.AssetManager assetManager,
android.view.Display display)
Constructor of ImageManager.
|
ImageManager(android.content.res.AssetManager assetManager,
float screenScale)
Constructor of ImageManager.
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Bitmap |
open(java.lang.String path,
float scaleForVector,
int tintColor)
Opens image from assetManager
|
android.graphics.Bitmap |
renderSVG(byte[] data,
float scale,
int tintColor) |
public ImageManager(android.content.res.AssetManager assetManager,
float screenScale)
assetManager - AssetManager used to load image datascreenScale - Scale to use while loading vector imagespublic ImageManager(android.content.res.AssetManager assetManager,
android.view.Display display)
assetManager - AssetManager used to load image datadisplay - Display to use to calculate scalepublic android.graphics.Bitmap renderSVG(byte[] data,
float scale,
int tintColor)
public android.graphics.Bitmap open(java.lang.String path,
float scaleForVector,
int tintColor)
path - path to imagescaleForVector - additional scale to use for vector image (actual scale will be screenScale*scaleForVector)tintColor - tint color to use for vector imagesCopyright © 2017 GetYourMap. All Rights Reserved.