PainterImageProperty

data class PainterImageProperty(val size: DpSize, val painter: Painter?, val color: Color, val alignment: Alignment, val contentScale: ContentScale, val alpha: Float, val colorFilter: ColorFilter?) : Property

Represents the properties of a painter image used in a drawable element. This class defines various attributes such as size, alignment, color properties, and painting content.

Constructors

Link copied to clipboard
constructor(size: DpSize, painter: Painter?, color: Color, alignment: Alignment, contentScale: ContentScale, alpha: Float, colorFilter: ColorFilter?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The alignment of the painter image within its container.

Link copied to clipboard

The alpha transparency value of the painter image.

Link copied to clipboard

The color overlay applied to the painter image.

Link copied to clipboard

Optional color filter applied to the painter image.

Link copied to clipboard

Defines how the painter image should be scaled within its bounds.

Link copied to clipboard

The painter associated with this property (nullable).

Link copied to clipboard

The size of the painter image in Dp.