z

Class PxlCropImageView

Interactive crop editor composed of an image layer, adjustable cutout overlay, and optional toolbar buttons.

public class PxlCropImageView : Grid

Constructor

PxlCropImageView()

Creates a new crop image editor with toolbar and overlay initialised.

public PxlCropImageView()

Event

ActveChanged

Raised when Active changes.

public event EventHandler ActveChanged

OnMenu

Raised when the menu button is tapped.

public event EventHandler OnMenu

Field

CornerActiveColor

Corner colour when the crop is active.

public Color CornerActiveColor

CornerInvalidColor

Corner colour when the crop is invalid.

public Color CornerInvalidColor

CornerMoveColor

Corner colour while dragging.

public Color CornerMoveColor

DbgZoom

Stores the last zoom value used when forecasting picture layout.

public double DbgZoom

EdgeActiveColor

Colour applied to edges when the crop is active.

public Color EdgeActiveColor

EdgeInvalidColor

Colour applied when the crop selection is invalid.

public Color EdgeInvalidColor

EdgeMoveColor

Colour applied during edge drag operations.

public Color EdgeMoveColor

NonActiveEdgeColor

Colour applied to edges when the crop is inactive.

public Color NonActiveEdgeColor

TouchDeltaX

Latest X offset applied to the picture during layout forecasting.

public double TouchDeltaX

TouchDeltaY

Latest Y offset applied to the picture during layout forecasting.

public double TouchDeltaY

_ToolBarHeight

Backing field storing the toolbar height.

public double _ToolBarHeight

Method

DbgPrintSizes()

Writes diagnostic information about layout sizes to the debug output.

public void DbgPrintSizes()

MyLoadImg(string)

Loads an embedded toolbar icon.

public static ImageSource MyLoadImg(string s)

OnParentSet()

Raises the (internal) ParentSet event.

protected override void OnParentSet()

TakeToolBar()

Detaches the toolbar layout from the control and returns it.

public Layout TakeToolBar()

UiSetMetaImage(MetaImage, bool, Corners, Corners)

Assigns a new meta image to the editor and updates the crop overlay.

public void UiSetMetaImage(MetaImage image, bool hideGreenRect, Corners corners, Corners detectedCorners)

Property

Active

Gets or sets whether the editor is currently active and responding to user interaction.

public bool Active { get; set; }

CloseButton

Gets or sets the close button instance.

public ImageButton CloseButton { get; set; }

Gets or sets the menu button instance.

public ImageButton MenuButton { get; set; }

RotateLeftButton

Gets or sets the rotate-left button instance.

public ImageButton RotateLeftButton { get; set; }

RotateRightButton

Gets or sets the rotate-right button instance.

public ImageButton RotateRightButton { get; set; }

SafeAreaPadding

Gets or sets safe-area padding applied to the toolbar.

public Thickness SafeAreaPadding { get; set; }

SelectButton

Gets or sets the select button instance.

public ImageButton SelectButton { get; set; }

ToolBarBackgroundColor

Gets or sets the toolbar background colour.

public Color ToolBarBackgroundColor { get; set; }

ToolBarButtonsSpace

Gets or sets horizontal spacing between toolbar buttons.

public double ToolBarButtonsSpace { get; set; }

ToolBarHeight

Gets or sets the toolbar height.

public double ToolBarHeight { get; set; }

ToolBarPadding

Gets or sets padding applied to the toolbar.

public Thickness ToolBarPadding { get; set; }

TouchRadius

Touch radius used for hit-testing crop handles.

public double TouchRadius { get; set; }

ZoomInMovingMode

Zoom factor applied when the user drags the crop.

public double ZoomInMovingMode { get; set; }
Top