ImagePaint

class ImagePaint(val image: Image, val size: Size = image.size, val opacity: Float = 1.0f) : Paint

A Paint that produces a repeating fill with the given Image.

Author

Nicholas Eddy

Parameters

image

The image to paint with

size

Size to draw the image when repeating

opacity

The opacity to draw the image with when repeating

Constructors

Link copied to clipboard
constructor(image: Image, size: Size = image.size, opacity: Float = 1.0f)

Properties

Link copied to clipboard

The image to paint with

Link copied to clipboard
val opacity: Float = 1.0f

The opacity to draw the image with when repeating

Link copied to clipboard
val size: Size

Size to draw the image when repeating

Link copied to clipboard
open override val visible: Boolean

true if the Paint is visible. This could be false if the Paint's attributes (i.e. color) make it invisible if used for rendering. Returning false in such a case allows the rendering system to avoid unnecessary operations that won't be visible to the user.

Inherited functions

Link copied to clipboard
operator fun Paint?.invoke(target: Target = Foreground, text: () -> StyledText): StyledText
operator fun Paint?.invoke(text: String, target: Target = Foreground): StyledText