# DImage:SetImageColor

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DImage:SetImageColor
- **Çeviri tarihi:** 2026-05-13

```lua
DImage:SetImageColor( Color col )
```

## Açıklama

Resmin rengini geçersiz kılar.

## Argümanlar

1.. [Renk](https://gmod.tr/wiki/Color) **Kol**: Görüntünün rengini geçersiz kılmak. [Renk](https://gmod.tr/wiki/Color).

### Örnek

İçinde Portal kutusu olan bir çerçeve oluşturur ve rengi yeşile ayarlar.

```lua
-- Çerçeve
MainFrame = vgui.Create("DFrame")
MainFrame:SetSize(200, 180)
MainFrame:Center()
MainFrame:SetTitle("Color example")

-- Portal kutusunun görüntüsü
local metalbox_img = vgui.Create("DImage", MainFrame)
metalbox_img:SetPos(35, 35)
metalbox_img:SetSize(128, 128)
metalbox_img:SetImage("spawnicons/models/props/metal_box_128.png")

metalbox_img:SetImageColor(Color(128, 255, 0, 255))
```

**Çıkış:** ![](https://gmod.tr/api/uploads/wiki/cc793e26f337891bc3d0.png)

- [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:SetImageColor
