Skip to Content

Lui.Image

Creates an Image from a Sprite or Texture.

Lui.Image(iconSprite, "w-16 h-16 image-contain") Lui.Image(texture, "w-full h-64 image-cover")

Supported image fit classes:

  • image-none - crop/zoom behavior
  • image-contain - fit inside bounds
  • image-cover - fill bounds and crop
  • image-stretch - stretch to bounds
Last updated on