PolygonStyle

data class PolygonStyle(var strokeColor: ScanbotColor = ScanbotColor("#FFFFFFFF", isArgb = false), var fillColor: ScanbotColor = ScanbotColor("#FFFFFF30", isArgb = false), var strokeWidth: Double = 2.0, var cornerRadius: Double = 0.0)

Configuration of the polygon appearance.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(strokeColor: ScanbotColor = ScanbotColor("#FFFFFFFF", isArgb = false), fillColor: ScanbotColor = ScanbotColor("#FFFFFF30", isArgb = false), strokeWidth: Double = 2.0, cornerRadius: Double = 0.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Polygon corner radius in dp. Default is 0.0

Link copied to clipboard

Polygon color. Default is "#FFFFFF30"

Link copied to clipboard

Color of the polygon outline. Default is "#FFFFFFFF"

Link copied to clipboard

Width of the polygon outline in dp. Default is 2.0

Functions

Link copied to clipboard
fun toJson(): JsonObject