Img Src
Constrictor receiving image name and a slot
Parameters
name With Extension
the name of the image (with extension)
slot
the required slot for the image
Constrictor receiving image binary data
Parameters
data
the image binary data
i Type
the image type
width
the image width in pixels
height
the image height in pixels
slot
the required slot for the image
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
text Params
The parameters defining the text image (e.g., text, color, size, etc.).
slot
The slot to which this image will be assigned.