Package gov.nasa.worldwind.render
Class ImageOptions
- java.lang.Object
-
- gov.nasa.worldwind.render.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.
-
-
-
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 areWorldWind.RGBA_8888
andWorldWind.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 areWorldWind.BILINEAR
andWorldWind.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 areWorldWind.CLAMP
andWorldWind.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 areWorldWind.RGBA_8888
andWorldWind.RGB_565
.
-
-