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) : Parcelable

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

The corner radius of the polygon in dp.

Link copied to clipboard

The fill color of the polygon.

Link copied to clipboard

The color of the polygon outline.

Link copied to clipboard

The width of the polygon outline in dp.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject