fillFit
Specifies how the image should fit within the bounds of the target shape or area.
This property determines the scaling and alignment behavior when applying an image as a fill. The options available are defined in the FillFit
enum:
STRETCH
: Stretches the image to completely fill the bounds, potentially distorting its aspect ratio.COVER
: Scales the image to cover the entire bounds while maintaining its aspect ratio. Portions of the image that exceed the bounds are cropped.CONTAIN
: Scales the image to fit entirely within the bounds while maintaining its aspect ratio, leaving empty space if the aspect ratio differs.
The default value for this property is FillFit.COVER
.