Skip to main content

ImageSizeMode Enum

Lists values that specify how an image is positioned within an ImageDashboardItem or BoundImageDashboardItem.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v24.2.Core.dll

Declaration

public enum ImageSizeMode

Members

Name Description
Clip

The image is placed in the upper-left corner of the ImageDashboardItem. The image is clipped if it is larger than the ImageDashboardItem which contains it.

Stretch

The image within the ImageDashboardItem is stretched or shrunk as appropriate to fit the size of the ImageDashboardItem.

Zoom

The image is sized proportionally (without clipping), so that it best fits the ImageDashboardItem. If the ratio of height to width of the ImageDashboardItem is the same as the image’s ratio, it will be resized to exactly fit into the ImageDashboardItem. Otherwise, the closest fitting side (height or width) of the image will be sized to the dashboard item and the other side (height or width) of the image is sized proportionally (leaving empty space).

Squeeze

If the ImageDashboardItem‘s dimensions exceed that of the image it contains, the image is centered and shown full-size. Otherwise, the image is resized to fit into the ImageDashboardItem‘s dimensions.

Remarks

Values listed by this enumeration are used to set the ImageDashboardItem.SizeMode property.

See Also