Class ImageOptions


  • public class ImageOptions
    extends java.lang.Object
    Options for images displayed by WorldWind components.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int imageConfig
      Indicates the in-memory configuration for images displayed by WorldWind components.
      int resamplingMode
      Indicates the image sampling algorithm used by WorldWind to display images that appear larger or smaller on screen than their native resolution.
      int wrapMode
      Indicates how WorldWind displays the contents of an image when attempting to draw a region outside of the image bounds.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageOptions()
      Constructs an image options with default values.
      ImageOptions​(int imageConfig)
      Constructs an image options with an image configuration.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • imageConfig

        public int imageConfig
        Indicates the in-memory configuration for images displayed by WorldWind components. By default, images are represented in the 32-bit RGBA_8888 configuration, the highest quality available. Components that do not require an alpha channel and want to conserve memory may use the 16-bit RGBA_565 configuration. Accepted values are WorldWind.RGBA_8888 and WorldWind.RGB_565.
      • resamplingMode

        public int resamplingMode
        Indicates the image sampling algorithm used by WorldWind to display images that appear larger or smaller on screen than their native resolution. Accepted values are WorldWind.BILINEAR and WorldWind.NEAREST_NEIGHBOR.
      • wrapMode

        public int wrapMode
        Indicates how WorldWind displays the contents of an image when attempting to draw a region outside of the image bounds. Accepted values are WorldWind.CLAMP and WorldWind.REPEAT.
    • Constructor Detail

      • ImageOptions

        public ImageOptions()
        Constructs an image options with default values.
      • ImageOptions

        public ImageOptions​(int imageConfig)
        Constructs an image options with an image configuration.
        Parameters:
        imageConfig - the image configuration to use. Accepted values are WorldWind.RGBA_8888 and WorldWind.RGB_565.