klyn.gui.windows.Painter.drawImage
method
public drawImage(image as Object, dx as Int, dy as Int, dw as Int = -1, dh as Int = -1, sx as Int = 0, sy as Int = 0, sw as Int = -1, sh as Int = -1, tint as Color = null, hovered as Boolean = false, hoverTint as Color = null) as Void:
Description

Draws an image-like source.

SVG sources can be tinted through tint and can resolve their SVG :hover color when hovered is true.

painter.drawImage("logo.png", 16, 16, 64, 64)
painter.drawImage("icons/save.svg", 16, 16, 24, 24, 0, 0, -1, -1, Color.parse("#9AA3B2"), button.isHovered, Color.white())