corelibraries-devexpress-dot-diagram-dot-core-fa4e289f.md
Specifies whether to preserve the aspect ratio of the source image when resizing the image item.
Namespace : DevExpress.Diagram.Core
Assembly : DevExpress.Diagram.v25.2.Core.dll
NuGet Package : DevExpress.Diagram.Core
public enum StretchMode
Public Enum StretchMode
| 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.
|
The following properties accept/return StretchMode values:
| Library | Related API Members |
|---|---|
| WinForms Controls | DiagramImage.StretchMode |
| WPF Controls | DiagramImage.StretchMode |
Values listed by this enumeration are used to set the DiagramImage.StretchMode and DiagramImage.StretchMode properties.
See Also