//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
cropGrip | the Painter to display the corner grip. |
cropHalo | the Painter to display the tap area around the corner grip. |
edgeGrip | the Painter to display the edge grip. |
edgeHalo | the Painter to display the tapArea around the edge grip. |
normalLineColor | the Color to draw the valid cutout. |
normalLineStyle | the DrawStyle to draw the valid cutout. |
invalidLineColor | the Color to draw the invalid cutout. |
invalidLineStyle | the DrawStyle to drawn the invalid cutout. |
zoomImageParams | the ZoomImageParams to show the picture. |
blurRadius | the 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
Name | Summary |
---|---|
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 |