Companion

actual object Companion
expect object Companion
actual object Companion
actual object Companion
actual object Companion

Functions

Link copied to clipboard

Constructs an image source with a Bitmap.

fromFile
Link copied to clipboard

Constructs an image source with a File.

Constructs an image source with a File.

fromFilePath
Link copied to clipboard

Constructs an image source with a file path.

Constructs an image source with a file path.

Link copied to clipboard

Constructs an image source with a BufferedImage.

fun fromImage(image: TexImageSource): ImageSource

Constructs an image source with an TexImageSource. The image's dimensions should not be greater than 2048 x 2048.

Link copied to clipboard

Constructs an image source with a ImageFactory. WorldWind shapes configured with a bitmap factory image source construct their bitmaps lazily, typically when the shape becomes visible on screen.

Constructs an image source with a ImageFactory. WorldWind shapes configured with an image factory image source construct their images lazily, typically when the shape becomes visible on screen.

Constructs an image source with a ImageFactory. WorldWind shapes configured with an image factory image source construct their images lazily, typically when the shape becomes visible on screen.

Link copied to clipboard
actual fun fromLineStipple(factor: Int, pattern: Short): ImageSource

Constructs a bitmap image source with a line stipple pattern. The result is a one-dimensional bitmap with pixels representing the specified stipple factor and stipple pattern. Line stipple images can be used for displaying dashed shape outlines. See earth.worldwind.shape.ShapeAttributes.outlineImageSource.

expect fun fromLineStipple(factor: Int, pattern: Short): ImageSource
actual fun fromLineStipple(factor: Int, pattern: Short): ImageSource

Constructs a stipple-pattern image source. Same algorithm as JS: a 1-row UIImage with factor-pixel-wide white segments drawn whenever the corresponding bit in pattern is set. Width is rounded up to the next power-of-two so GLES 2 / WebGL 1 GL_REPEAT works on the texture.

actual fun fromLineStipple(factor: Int, pattern: Short): ImageSource

Constructs an image source with a line stipple pattern. The result is a one-dimensional image with pixels representing the specified stipple factor and stipple pattern. Line stipple images can be used for displaying dashed shape outlines. See earth.worldwind.shape.ShapeAttributes.outlineImageSource.

actual fun fromLineStipple(factor: Int, pattern: Short): ImageSource

Constructs an image source with a line stipple pattern. The result is a one-dimensional image with pixels representing the specified stipple factor and stipple pattern. Line stipple images can be used for displaying dashed shape outlines. See earth.worldwind.shape.ShapeAttributes.outlineImageSource.

Link copied to clipboard
actual fun fromResource(imageResource: ImageResource): ImageSource

Constructs an image source with a multi-platform resource identifier.

Constructs an image source with an Android resource identifier. The resource must be accessible from the Android Context associated with the WorldWindow.

expect fun fromResource(imageResource: ImageResource): ImageSource
actual fun fromResource(imageResource: ImageResource): ImageSource
actual fun fromResource(imageResource: ImageResource): ImageSource

Constructs an image source with a multi-platform resource identifier.

actual fun fromResource(imageResource: ImageResource): ImageSource

Constructs an image source with a multi-platform resource identifier.

Link copied to clipboard

Constructs an image source with a generic Any instance. The source may be any non-null object. This is equivalent to calling one of ImageSource's type-specific factory methods when the source is a recognized type.

expect fun fromUnrecognized(source: Any): ImageSource
actual fun fromUnrecognized(source: Any): ImageSource

Constructs an image source with a generic Any instance. The source may be any non-null object. This is equivalent to calling one of ImageSource's type-specific factory methods when the source is a recognized type.

actual fun fromUnrecognized(source: Any): ImageSource

Constructs an image source with a generic Any instance. The source may be any non-null object. This is equivalent to calling one of ImageSource's type-specific factory methods when the source is a recognized type.

fromUrl
Link copied to clipboard

Constructs an image source with an URL.

Constructs an image source with an URL.

fun fromUrl(url: URL): ImageSource

Constructs an image source with an URL. The image's dimensions should be no greater than 2048 x 2048.

Link copied to clipboard
actual fun fromUrlString(urlString: String): ImageSource

Constructs an image source with a URL string.

expect fun fromUrlString(urlString: String): ImageSource
actual fun fromUrlString(urlString: String): ImageSource
actual fun fromUrlString(urlString: String): ImageSource

Constructs an image source with a URL string.

actual fun fromUrlString(urlString: String): ImageSource

Constructs an image source with a URL string. The image's dimensions should not be greater than 2048 x 2048.