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 the SceneView.
An ImageOverlay can 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 new ImageFrame each time new data is available. This provides a
fast-refreshing workflow where the underlying images are frequently updated as new data comes in.
Since ImageOverlay does not support the rich processing and rendering capabilities of a
RasterLayer , you should use
Raster and RasterLayer for 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:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates anImageOverlay.ImageOverlay(ImageFrame imageFrame) Creates anImageOverlaythat contains an ImageFrame. -
Method Summary
Modifier and TypeMethodDescriptionGets the extent of theImageOverlay.Gets theImageFramethat contains the image.floatGets the opacity of theImageOverlay.booleanGets 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 Details
-
ImageOverlay
public ImageOverlay()Creates anImageOverlay.- Since:
- 100.8.0
-
ImageOverlay
Creates anImageOverlaythat contains an ImageFrame.- Parameters:
imageFrame- the ImageFrame of theImageOverlay- Throws:
IllegalArgumentException- when imageFrame is null- Since:
- 100.8.0
-
-
Method Details
-
getImageFrame
Gets theImageFramethat contains the image.- Returns:
- the
ImageFramecontained in theImageOverlayor null if none - Since:
- 100.8.0
-
setImageFrame
Sets the ImageFrame to be used in theImageOverlay- Parameters:
imageFrame- the ImageFrame contained in theImageOverlay- Since:
- 100.8.0
-
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
-