CropImageParams Constructor

constructor(cropGrip: Painter, cropHalo: Painter, edgeGrip: Painter, edgeHalo: Painter, normalLineColor: Color, normalLineStyle: DrawStyle, invalidLineColor: Color, invalidLineStyle: DrawStyle, zoomImageParams: ZoomImageParams, blurRadius: Dp)

Parameters

  • cropGrip — the image drawn at each corner the user can drag.
  • cropHalo — the image drawn behind a corner grip to show its touch area.
  • edgeGrip — the image drawn at the midpoint of each edge.
  • edgeHalo — the image drawn behind an edge grip to show its touch area.
  • normalLineColor — the outline colour while the corners form a valid shape.
  • normalLineStyle — the stroke used for that outline.
  • invalidLineColor — the outline colour once the corners no longer form a valid shape.
  • invalidLineStyle — the stroke used for that outline; dashed by default, so the state reads without relying on colour alone.
  • zoomImageParams — how the page behind the crop surface zooms and pans.
  • blurRadius — how strongly the area outside the crop is blurred. Set it to 0.dp to leave the page unblurred; the effect also needs Android 12, and is skipped below it.
Top