Enum DiagramScale
Indicates whether or not the image should be scaled uniformly.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public enum DiagramScale
Examples
<SfDiagramComponent Width = "1000px" Height="1000px">
<BackgroundStyle ImageSource = "@imageSource" ImageScale="@imageScaleâ€></BackgroundStyle>
</SfDiagramComponent>
string imageSource = "https://www.w3schools.com/images/w3schools_green.jpg";
DiagramScale imageScale = DiagramScale.Slice;
Fields
| Name | Description |
|---|---|
| Meet | stretches the content in both the x and y dimensions until it fills the width or height provided. |
| None | There will be no scaling of the image. |
| Slice | Preserves the aspect ratio of the content but scales up the graphic until it fills both the width and height provided (clipping the content that overflows the bounds). |