Image

class Image(image: BufferedImage?)

Constructors

Link copied to clipboard
fun Image(name: String, url: String? = null)
Link copied to clipboard
fun Image(file: File)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun destroy()

Clears the image from GPU memory and removes its references CT side that way it can be garbage collected if not referenced in js code.

Link copied to clipboard
fun draw(x: Double, y: Double, width: Double = textureWidth.toDouble(), height: Double = textureHeight.toDouble()): Image
Link copied to clipboard
fun getTexture(): DynamicTexture
Link copied to clipboard
fun getTextureHeight(): Int
Link copied to clipboard
fun getTextureWidth(): Int
Link copied to clipboard
fun onRender(event: RenderGameOverlayEvent.Pre)

Properties

Link copied to clipboard
var image: BufferedImage?

Sources

Link copied to clipboard