Skip to main content

StretchMode Enum

Specifies whether to preserve the aspect ratio of the source image when resizing the image item.

Namespace: DevExpress.Diagram.Core

Assembly: DevExpress.Diagram.v24.1.Core.dll

NuGet Package: DevExpress.Diagram.Core

Declaration

public enum StretchMode

Members

Name Description
Stretch

Fit the image item while preserving the native aspect ratio of the source image.

Uniform

Stretch the source image to fill the diagram image item.

UniformToFill

Fill the image item while preserving the native aspect ratio of the source image. The image is clipped if its aspect ratio differs from the image item.

Related API Members

The following properties accept/return StretchMode values:

Library Related API Members
WinForms Controls DiagramImage.StretchMode
WPF Controls DiagramImage.StretchMode

Remarks

Values listed by this enumeration are used to set the DiagramImage.StretchMode and DiagramImage.StretchMode properties.

See Also