clipFit

Defines the strategy for fitting a clip shape to its bounds.

This property determines how the clip shape will be scaled or resized to fit within a bounding area. The possible values are specified by the FillFit enumeration:

  • FillFit.STRETCH: Stretches the clip shape to fully cover the bounds, ignoring original aspect ratio.

  • FillFit.COVER: Scales the clip shape to completely cover the bounds while maintaining its aspect ratio.

  • FillFit.CONTAIN: Scales the clip shape to fully fit within the bounds while preserving its aspect ratio.

The default fit mode is FillFit.STRETCH.