ImgSrc

constructor(nameWithExtension: String, slot: ImgSrc.Slot)

Constrictor receiving image name and a slot

Parameters

nameWithExtension

the name of the image (with extension)

slot

the required slot for the image


constructor(data: ByteArray, iType: ImageType, slot: ImgSrc.Slot, width: Int, height: Int)

Constrictor receiving image binary data

Parameters

data

the image binary data

iType

the image type

width

the image width in pixels

height

the image height in pixels

slot

the required slot for the image


constructor(textParams: TextParams, slot: ImgSrc.Slot)

Creates an image source from the given text parameters and assigns it to the specified slot.

This constructor generates an image based on TextParams, sets its type, dimensions, and resource data.

Parameters

textParams

The parameters defining the text image (e.g., text, color, size, etc.).

slot

The slot to which this image will be assigned.