GlyphPath

data class GlyphPath(var path: VectorPath = VectorPath(), var colorShape: Shape? = null, var bitmap: Bitmap? = null, var bitmapOffset: Point = Point(0, 0), var bitmapScale: Scale = Scale(1, 1), var transform: Matrix = Matrix(), var scale: Double = 1.0) : Drawable

Constructors

Link copied to clipboard
constructor(path: VectorPath = VectorPath(), colorShape: Shape? = null, bitmap: Bitmap? = null, bitmapOffset: Point = Point(0, 0), bitmapScale: Scale = Scale(1, 1), transform: Matrix = Matrix(), scale: Double = 1.0)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun draw(c: Context2d)
Link copied to clipboard
fun <T : Bitmap> Drawable.draw(out: T): T
Link copied to clipboard
Link copied to clipboard
fun Drawable.renderToImage(width: Int, height: Int): NativeImage
fun Drawable.renderToImage(width: Int, height: Int, native: Boolean): Bitmap
Link copied to clipboard
fun Drawable.toShape(width: Int, height: Int): Shape
Link copied to clipboard
fun Drawable.toSvg(width: Int, height: Int, scale: Double = 1.0): Xml