Class DiagramScale
Indicates whether or not the image should be scaled uniformly.
Inheritance
System.Object
DiagramScale
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class DiagramScale : Enum
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
Meet
stretches the content in both the x and y dimensions until it fills the width or height provided.
Declaration
public const DiagramScale Meet
Field Value
Type |
---|
DiagramScale |
None
There will be no scaling of the image.
Declaration
public const DiagramScale None
Field Value
Type |
---|
DiagramScale |
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).
Declaration
public const DiagramScale Slice
Field Value
Type |
---|
DiagramScale |