ScalableImageFeature

data class ScalableImageFeature<T : Any>(val space: CoordinateSpace<T>, val rectangle: Rectangle<T>, val attributes: Attributes = Attributes.EMPTY, val painter: @Composable () -> Painter) : Feature<T> , PainterFeature<T>

An image that is bound to coordinates and is scaled (and possibly warped) together with them

Parameters

rectangle

the size of background in scheme size units. The screen units to scheme units ratio equals scale.

Constructors

Link copied to clipboard
constructor(space: CoordinateSpace<T>, rectangle: Rectangle<T>, attributes: Attributes = Attributes.EMPTY, painter: @Composable () -> Painter)

Properties

Link copied to clipboard
open override val attributes: Attributes
Link copied to clipboard
val Feature<*>.color: Color?
Link copied to clipboard
Link copied to clipboard
val painter: @Composable () -> Painter
Link copied to clipboard
Link copied to clipboard
open override val space: CoordinateSpace<T>
Link copied to clipboard
val Feature<*>.z: Float
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getBoundingBox(zoom: Float): Rectangle<T>
Link copied to clipboard
@Composable
open override fun getPainter(): Painter
Link copied to clipboard
open override fun withAttributes(modify: (Attributes) -> Attributes): Feature<T>