menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageEditorZoomSettings - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ImageEditorZoomSettings

    Represents the settings for zooming actions in the SfImageEditor.

    Inheritance
    System.Object
    ImageEditorZoomSettings
    Namespace: Syncfusion.Blazor.ImageEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ImageEditorZoomSettings : OwningComponentBase
    Remarks

    The ZoomSettings tag allows you to control the zoom level of the Image Editor. The maximum zoom level determines how close the user can zoom in to the image, while the minimum zoom level determines how far out the user can zoom.

    Constructors

    ImageEditorZoomSettings()

    Declaration
    public ImageEditorZoomSettings()

    Properties

    MaxZoomFactor

    Gets or sets the maximum zoom level that restricts the range of zooming allowed by this zoom settings.

    Declaration
    public double MaxZoomFactor { get; set; }
    Property Value
    Type Description
    System.Double

    A double value that specifies the maximum zooming level. And the default value is 10 (1000%).

    Remarks

    User can specify MaxZoomFactor as 20, and it can zoom in 20 actions from the original image.

    MinZoomFactor

    Gets or sets the minimum zoom level that restricts the range of zooming allowed by this zoom settings.

    Declaration
    public double MinZoomFactor { get; set; }
    Property Value
    Type Description
    System.Double

    A double value that specifies the minimum zooming level. And the default value is 1 (100%).

    Remarks

    User can specify MinZoomFactor as 0.1, and it can zoom out 9 actions from the original image.

    ZoomFactor

    Gets or sets the zooming level applied to the image at initial load in the SfImageEditor.

    Declaration
    public double ZoomFactor { get; set; }
    Property Value
    Type Description
    System.Double

    A double value that specifies the minimum zooming level. And the default value is 1 (100%).

    Remarks

    The default ZoomFactor (set as 1) loads the original image.

    ZoomPoint

    Gets or sets the point in which the zooming has been performed in the SfImageEditor.

    Declaration
    public ImageEditorPoint ZoomPoint { get; set; }
    Property Value
    Type Description
    ImageEditorPoint

    An ImageEditorPoint value that specifies the current zooming point. And the default value is null, and it can be considered as center point of the SfImageEditor.

    Remarks

    The given value is an ImageEditorPoint object which has x and y coordinates.

    ZoomTrigger

    Gets or sets the type of zooming needs to be performed in the SfImageEditor.

    Declaration
    public ZoomTrigger ZoomTrigger { get; set; }
    Property Value
    Type Description
    ZoomTrigger

    A flagged Enum ZoomTrigger value that specifies the type of zooming option to perform zooming. And by default, all type of zooming were performed in an SfImageEditor.

    Remarks

    It is a flagged Enum. Use this property to enable or disable specific types of zooming in the image editor. The following zooming options are available:

    • MouseWheel: Zooming is performed by scrolling the mouse wheel up and down.
    • Pinch: Zooming is performed using pinch gestures on touch-enabled devices.
    • Commands: Zooming is performed by clicking the CTRL key and either the plus (+) or minus (-) buttons on the keyboard.
    • Toolbar: Zooming is performed using toolbar buttons.
    By default, this property is set to `MouseWheel|Touch|Commands|Toolbar`, which enables all types of zooming.
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved