Zooming in Xamarin.iOS ImageEditor
1 Mar 20221 minute to read
The image editor control provides support to zoom and pan actions over an image.
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 = true;
You can customize maximum zoom level by setting value to
MaximumZoomLevel property in image editor control.
editor.EnableZooming = true; editor.MaximumZoomLevel = 8;
The image editor control provides support for panning and allows to pan the image with two fingers or single finger by setting the
The following properties are used for 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.
By default, the
PanningMode value is set to