The image editor control provides support for zooming and panning.You can Zoom in and Zoom out image in image editor control.
The following properties are used for zooming feature of the image editor control:
- Maximum ZoomLevel
You can enable or disable the zooming functionality by setting the
EnableZooming value to true or false. By default, the
EnableZooming value is set to true.
editor.EnableZooming = false;
You can set the maximum zoom level to image using the
editor.EnableZooming = true; editor.MaximumZoomLevel = 8;
Image editor control provides support for panning. Image editor allows you to pan the image with two fingers or single finger by setting the
The following properties are used in the panning.
SingleFinger: Zooms or pans the image with single finger, but shapes and text selection cannot be performed with this mode.
TwoFinger: Zooms or pans the image with two finger. The shapes and text selection can be performed with this mode.
PanningMode value as
editor.PanningMode = PanningMode.TwoFinger;