@ParametersAreNonnullByDefault
public class ImageManager
extends java.lang.Object
ImageManager renders images from svgpb format and load images from resources.| 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
|
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 scale@Nullable
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 © 2019 GetYourMap. All Rights Reserved.