BitmapRegion

data class BitmapRegion(val x: Int, val y: Int, val width: Int, val height: Int, val canvasWidth: Int, val canvasHeight: Int, val bitmap: RgbaBitmap, val forced: Boolean = false)

A pre-rendered subtitle image, positioned in the video's own coordinate space.

Constructors

Link copied to clipboard
constructor(x: Int, y: Int, width: Int, height: Int, canvasWidth: Int, canvasHeight: Int, bitmap: RgbaBitmap, forced: Boolean = false)

Properties

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

The size the coordinates above are relative to.

Link copied to clipboard

True when the stream marks this picture as forced: a caption for a line in another language or a sign the viewer must read, which a disc player shows even with subtitles off (#513). Blu-ray (PGS) and DVD tracks can mix forced pictures with the ordinary ones in one track. io.github.yuroyami.kiteplayer.SubtitleConfig.forcedPicturesOnly draws only these.

Link copied to clipboard
val height: Int
Link copied to clipboard
val width: Int
Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int