TintedNinePatchBorder

class TintedNinePatchBorder(val ninePatch: NinePatch) : Border

Similar to NinePatchBorder, but the source texture's pixels are multiplied by a color (usually from Region.borderColor).

Used in two ways :

  1. Making the border semi-transparent by using only the alpha channel of tint

  2. Using the RGB channels of tint on a greyscale nine-patch.

Constructors

Link copied to clipboard
constructor(ninePatch: NinePatch)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun draw(x: Float, y: Float, width: Float, height: Float, color: Color, size: Edges)

Draw a border inside the rectangle defined by x,y, width and height. The thickness of the border is given by size.