Class ImageOverlay
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.view.ImageOverlay
-
public final class ImageOverlay extends Object
An overlay that contains a frame with an image to display in the view.Currently, this feature is supported in a
SceneView(3D) only. The overlay can contain exactly one image at any given time. Multiple overlays, however, can be added and rendered at the same time on theSceneView. AnImageOverlaycan be used to quickly render frequently changing images. For example, rendering realtime sensor data, such as weather, where each static image represents a single frame from the radar. In this workflow, images are constantly updated via a newImageFrameeach time new data is available. This provides a fast-refreshing workflow where the underlying images are frequently updated as new data comes in.Since
ImageOverlaydoes not support the rich processing and rendering capabilities of aRasterLayer, you should useRasterandRasterLayerfor workflows that require static image rendering, analysis, and persistence.Image overlays are rendered above all other layers in the scene, draped on the surface, and below any graphics overlays in the scene view.
- Since:
- 100.8.0
- See Also:
ImageFrame,SceneView
-
-
Constructor Summary
Constructors Constructor Description ImageOverlay()Creates anImageOverlay.ImageOverlay(ImageFrame imageFrame)Creates anImageOverlaythat contains an ImageFrame.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvelopegetExtent()Gets the extent of theImageOverlay.ImageFramegetImageFrame()Gets theImageFramethat contains the image.floatgetOpacity()Gets the opacity of theImageOverlay.booleanisVisible()Gets the visibility of theImageOverlay.voidsetImageFrame(ImageFrame imageFrame)Sets the ImageFrame to be used in theImageOverlayvoidsetOpacity(float opacity)Sets the opacity of theImageOverlay.voidsetVisible(boolean isVisible)Sets the visibility of theImageOverlay.
-
-
-
Constructor Detail
-
ImageOverlay
public ImageOverlay()
Creates anImageOverlay.- Since:
- 100.8.0
-
ImageOverlay
public ImageOverlay(ImageFrame imageFrame)
Creates anImageOverlaythat contains an ImageFrame.- Parameters:
imageFrame- the ImageFrame of theImageOverlay- Throws:
IllegalArgumentException- when imageFrame is null- Since:
- 100.8.0
-
-
Method Detail
-
getImageFrame
public ImageFrame getImageFrame()
Gets theImageFramethat contains the image.- Returns:
- the
ImageFramecontained in theImageOverlayor null if none - Since:
- 100.8.0
-
setImageFrame
public void setImageFrame(ImageFrame imageFrame)
Sets the ImageFrame to be used in theImageOverlay- Parameters:
imageFrame- the ImageFrame contained in theImageOverlay- Since:
- 100.8.0
-
getExtent
public Envelope getExtent()
Gets the extent of theImageOverlay.The spatial reference of the extent matches the extent of the
SceneViewthat contains the image overlay.- Returns:
- the extent of the
ImageOverlayor null if none - Since:
- 100.8.0
-
isVisible
public boolean isVisible()
Gets the visibility of theImageOverlay.- Returns:
- the visibility of the
ImageOverlay - Since:
- 100.8.0
-
setVisible
public void setVisible(boolean isVisible)
Sets the visibility of theImageOverlay.- Parameters:
isVisible- true if image should be visible- Since:
- 100.8.0
-
getOpacity
public float getOpacity()
Gets the opacity of theImageOverlay.Opacity values range from 0.0 to 1.0, where 0.0 is fully transparent and 1.0 is fully opaque.
- Returns:
- the opacity for the
ImageOverlay - Since:
- 100.8.0
-
setOpacity
public void setOpacity(float opacity)
Sets the opacity of theImageOverlay.Opacity values range from 0.0 to 1.0, where 0.0 is fully transparent and 1.0 is fully opaque.
- Parameters:
opacity- the opacity for theImageOverlay- Since:
- 100.8.0
-
-