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.2.Core.dll
NuGet Package: DevExpress.Diagram.Core
#Declaration
#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. |
Uniform
|
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 |
---|---|
Win |
Diagram |
WPF Controls | Diagram |
#Remarks
Values listed by this enumeration are used to set the DiagramImage.StretchMode and DiagramImage.StretchMode properties.