Package globus.glmap
Class GLMapImage
java.lang.Object
globus.glmap.GLNativeObject
globus.glmap.GLMapDrawObject
globus.glmap.GLMapDrawable
globus.glmap.GLMapImage
Drawable with image
-
Nested Class Summary
Nested classes/interfaces inherited from class globus.glmap.GLMapDrawable
GLMapDrawable.TransformMode -
Constructor Summary
ConstructorsConstructorDescriptionCreates new empty image that will be injected to mapGLMapImage(int drawOrder) Creates new empty image with given draw order -
Method Summary
Methods inherited from class globus.glmap.GLMapDrawable
getAngle, getHeight, getOffset, getPosition, getScale, getWidth, hitTest, isRotatesWithMap, setAngle, setOffset, setPosition, setRotatesWithMap, setScale, setTransformModeMethods inherited from class globus.glmap.GLMapDrawObject
getDrawOrder, isHidden, setHiddenMethods inherited from class globus.glmap.GLNativeObject
dispose
-
Constructor Details
-
GLMapImage
public GLMapImage(int drawOrder) Creates new empty image with given draw order- Parameters:
drawOrder- Draw order used to sort objects on map
-
GLMapImage
public GLMapImage()Creates new empty image that will be injected to map
-
-
Method Details
-
setBitmap
Sets new image to draw- Parameters:
bitmap- new image to drawonReadyToDraw- optional runnable that called when image ready to draw
-
setBitmap
public void setBitmap(@NonNull android.graphics.Bitmap bitmap) Sets new image to draw- Parameters:
bitmap- new image to draw
-
setTint
public void setTint(@ColorInt int color) Sets a tint color for the image. This color will be applied to the image, modifying its appearance while preserving its content. The tint effect is animatable, allowing for smooth transitions between color changes.- Parameters:
color- The color to apply as a tint. Set it to color with alpha equal to zero to disable tint.
-
getTint
@ColorInt public int getTint()Retrieves the currently applied tint color of the image. If no tint has been set, the default value is zero (no tint effect).- Returns:
- The current tint color or zero if no tint is applied.
-