InPaintStroke

data class InPaintStroke(val points: List<InPaintPoint>, val brushSize: Int, val canvasWidth: Int, val canvasHeight: Int)(source)

Carries InPaintStroke data through the SDAI presentation layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(points: List<InPaintPoint>, brushSize: Int, canvasWidth: Int, canvasHeight: Int)

Properties

Link copied to clipboard

Exposes the brushSize value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the canvasHeight value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the canvasWidth value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the points value used by the SDAI presentation layer.

Functions

Link copied to clipboard
private fun InPaintStroke.toAndroidPath(targetWidth: Int, targetHeight: Int): Path

Converts SDAI data with toAndroidPath.

Link copied to clipboard
internal fun InPaintStroke.toPath(targetWidth: Float, targetHeight: Float): Path

Converts SDAI data with toPath.

Link copied to clipboard
private fun InPaintStroke.toSkiaPath(targetWidth: Int, targetHeight: Int): Path

Converts SDAI data with toSkiaPath.