Enumeration IconFit

The image fitting mode for Icon widgets; describes how an image is transformed if its dimensions don't match the output dimensions.

Enumeration Members

Enumeration Members

Contain

The image will be scaled down or up such that at least an axis of the image has the same dimensions as the widget, and the entire image is visible, preserving the aspect ratio of the image. The default image fitting mode.

Cover

Similar to IconFit.Contain, except parts of the image can be cut off so that all parts of the widget are covered by the image.

Fill

The image will be forced to have the same size as the widget by stretching or squishing it.