//design/com.pixelnetica.design.image/CropImageParams

CropImageParams

@Immutable

data class CropImageParams(val cropGrip: Painter, val cropHalo: Painter, val edgeGrip: Painter, val edgeHalo: Painter, val normalLineColor: Color, val normalLineStyle: DrawStyle, val invalidLineColor: Color, val invalidLineStyle: DrawStyle, val zoomImageParams: ZoomImageParams, val blurRadius: Dp)

The parameters to crop a picture.

Parameters

androidJvm

  
cropGripthe Painter to display the corner grip.
cropHalothe Painter to display the tap area around the corner grip.
edgeGripthe Painter to display the edge grip.
edgeHalothe Painter to display the tapArea around the edge grip.
normalLineColorthe Color to draw the valid cutout.
normalLineStylethe DrawStyle to draw the valid cutout.
invalidLineColorthe Color to draw the invalid cutout.
invalidLineStylethe DrawStyle to drawn the invalid cutout.
zoomImageParamsthe ZoomImageParams to show the picture.
blurRadiusthe Float value to blur the image around cutout or zero to turn bluring off.

Constructors

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

Properties

NameSummary
blurRadius[androidJvm]
val blurRadius: Dp
cropGrip[androidJvm]
val cropGrip: Painter
cropHalo[androidJvm]
val cropHalo: Painter
edgeGrip[androidJvm]
val edgeGrip: Painter
edgeHalo[androidJvm]
val edgeHalo: Painter
invalidLineColor[androidJvm]
val invalidLineColor: Color
invalidLineStyle[androidJvm]
val invalidLineStyle: DrawStyle
normalLineColor[androidJvm]
val normalLineColor: Color
normalLineStyle[androidJvm]
val normalLineStyle: DrawStyle
zoomImageParams[androidJvm]
val zoomImageParams: ZoomImageParams
Top