writeUint16GrayscaleTiff

fun writeUint16GrayscaleTiff(pixels: IntArray, width: Int, height: Int): ByteArray

Encode a width × height grid of 16-bit-unsigned elevation samples (row-major, top-row first) into a TIFF byte array. Codes are 0..65535. Used by the cross-platform elevation cache to store Int16-shaped tiles on JS / iOS, where PNG-16 isn't cross-platform available.