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