Specifies whether to preserve the aspect ratio of the source image when resizing the image item.
public enum StretchMode
Public Enum StretchMode
Fit the image item while preserving the native aspect ratio of the source image.
Stretch the source image to fill the diagram image item.
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.
Values listed by this enumeration are used to set the DiagramImage.StretchMode and DiagramImage.StretchMode properties.