Matthias
  • 👋Welcome
  • 👶Getting started
  • 📞Callbacks
  • 🕑Variables
    • 🎯Getter functions
      • 🙏Fields available for getting
  • 🧑‍🦯Visuals
    • ◻️Shapes
      • 📏Line
      • ⚪Circle
      • ⬜Rectangle
    • 📸Media
      • 🖼️Image
      • 🔡Text
    • 🔔Notifications
  • ☁️Miscellaneous
    • 📲Image memory management
Powered by GitBook
On this page
  1. Visuals
  2. Media

Image

To display an image in Matthias you will have to provide the following arguments:

  • Position of the Image: [f32; 2]

  • Size of the Image: [f32; 2]

  • Path to the Image: String

--Position (x, y)
position = {500., 500.}

--Image Size (width, height)
size = {100., 300.}

--Draw image on draw
function OnDraw()
    draw_image(position, size, "C:\\Path\\To\\Your\\Image.png")
end
PreviousMediaNextText
🧑‍🦯
📸
🖼️