alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    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).

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved