# DImage:GetImage

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DImage:GetImage
- **Çeviri tarihi:** 2025-09-08

```lua
string DImage:GetImage()
```

## Açıklama

Resim panelinde yüklü olan resmin yolunu döndürür.

## Döndürdükleri

1. [string](https://gmod.tr/wiki/string): Yüklenmiş olan resmin dosya yolu.

### Örnek

Rastgele seçilmiş bir "post process" efekti küçük resmiyle bir çerçeve oluşturur ve resmin yolunu konsola yazdırır.

```lua
-- Çerçeve
MainFrame = vgui.Create("DFrame")
MainFrame:SetSize(200, 200)
MainFrame:Center()
MainFrame:SetTitle("Post process efekti")

-- Post process efekti küçük resmini yükle
local postprocess = vgui.Create("DImage", MainFrame)
postprocess:SetSize(128, 128)
postprocess:Center()

local materials = file.Find("materials/gui/postprocess/*.png", "GAME")

postprocess:SetImage("materials/gui/postprocess/"..materials[math.random(1, #materials)])

print(postprocess:GetImage())
```

**Çıktı:**

```lua
materials/gui/postprocess/colourmod.png
```

![](https://gmod.tr/api/uploads/wiki/1a1d919f08d078c99e08.jpg)

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/DImage:GetImage
