ImageMode defines how an image is rendered within a node. The options are:
'contain': The image is scaled to fit within the node's area while maintaining its aspect ratio.
'cover': The image is scaled to cover the node's area while maintaining its aspect ratio.
'pattern': The image is repeated to fill the node's area, creating a pattern effect.
'fit': The image is drawn once within the node's bounding box, without scaling.
'none': The image is not rendered within the node.
This property allows for flexible use of images in nodes, enabling both decorative patterns and single-image frames depending on the desired visual style.
ImageMode defines how an image is rendered within a node. The options are: