NitfImage

class NitfImage(val width: Int, val height: Int, val argb: IntArray, val sector: Sector)

A decoded NITF image ready to be displayed. Holds a row-major ARGB int[] (alpha in the top byte, then R, G, B) alongside the dimensions and the georeferenced sector recovered from the IGEOLO field.

Use toImageSource to obtain a platform-specific ImageSource that a earth.worldwind.shape.SurfaceImage can consume. The per-platform bitmap conversion (BufferedImage on JVM, Bitmap on Android, canvas on JS, UIImage on iOS) lives behind ArgbImage, shared with every other decoder that produces pixels rather than encoded bytes.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, argb: IntArray, sector: Sector)

Properties

Link copied to clipboard

Row-major ARGB pixels in 0xAARRGGBB layout — same as BufferedImage.TYPE_INT_ARGB and Android Bitmap.Config.ARGB_8888.

Link copied to clipboard
val height: Int
Link copied to clipboard

Georeferenced sector from the image segment's IGEOLO field.

Link copied to clipboard
val width: Int

Functions

Link copied to clipboard

Convert a NitfImage into a renderer-ready ImageSource. The platform builds the cheapest native bitmap representation it can (no PNG-encode round-trip) and hands it to the surface-image pipeline.