Manual Crop Component Pixelnetica™ Document Scanning SDK for .NET MAUI
The Manual Crop component allows users to edit document boundaries, rotate, and crop images directly within the app.
This component can be integrated into the application interface as a View
.
- Class:
ImageSdkWrapper.Forms.PxlCropImageView
Key methods:
TakeToolBar
– retrieves the toolbar, so buttons can be flexibly placed in the UI.UiSetMetaImage
– sets the picture and parameters obtained from a scanner or file.
Usage examples can be found in the .NET MAUI demo application under MainPage.cs
.
Customization Properties
Document boundary colors
Color NonActiveEdgeColor
Color EdgeActiveColor
Color EdgeMoveColor
Color EdgeInvalidColor
Corner colors
Color CornerActiveColor
Color CornerMoveColor
Color CornerInvalidColor
Zoom and touch settings
double ZoomInMovingMode
– zooms in when a corner is touched.double TouchRadius
– defines the touch detection radius.
Toolbar appearance
Color ToolBarBackgroundColor
double ToolBarHeight
Thickness ToolBarPadding
double ToolBarButtonsSpace
Safe area padding
Thickness SafeAreaPadding
Toolbar buttons
ImageButton MenuButton
ImageButton RotateLeftButton
ImageButton RotateRightButton
ImageButton SelectButton
ImageButton CloseButton
Events
event EventHandler ActiveChanged;
– triggered when the component enters or exits edit mode.event EventHandler OnMenu;
– triggered when the user taps the menu button.