ImageResult

@Serializable
data class ImageResult(val name: String, val base64: String)

Represents an image result, encoded as a Base64 string.

Encapsulates an image along with its name. The image is stored as a Base64 encoded string and is accompanied by helper functions to get the decoded image.

Constructors

Link copied to clipboard
constructor(name: String, base64: String)

Properties

Link copied to clipboard

The Base64 encoded representation of the image data.

Link copied to clipboard
@Transient
val image: ImageSource

An ImageSource representing the decoded image. This property is created by decoding the decodedBytes. It is also transient and is intended for in-memory image operations.

Link copied to clipboard

The name associated with the image.