Encoded

class Encoded(val bytes: ByteArray) : LlamaImage(source)

An encoded image file — PNG, JPEG, BMP, GIF (first frame), TGA, PSD, HDR, PIC or PNM, as decoded by libmtmd's bundled stb_image — decoded in memory.

Constructors

Link copied to clipboard
constructor(bytes: ByteArray)

Properties

Link copied to clipboard

the encoded file contents.

Functions

Link copied to clipboard
open override fun toString(): String

The encoded size, without the bytes.