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 NonActiveEdgeColorColor EdgeActiveColorColor EdgeMoveColorColor EdgeInvalidColor
Corner colors
Color CornerActiveColorColor CornerMoveColorColor CornerInvalidColor
Zoom and touch settings
double ZoomInMovingMode– zooms in when a corner is touched.double TouchRadius– defines the touch detection radius.
Toolbar appearance
Color ToolBarBackgroundColordouble ToolBarHeightThickness ToolBarPaddingdouble ToolBarButtonsSpace
Safe area padding
Thickness SafeAreaPadding
Toolbar buttons
ImageButton MenuButtonImageButton RotateLeftButtonImageButton RotateRightButtonImageButton SelectButtonImageButton 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.