# surface.GetTextureSize

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

```lua
number, number surface.GetTextureSize( number textureID )
```

## Açıklama

İlişkili doku ID'sine sahip dokunun boyutunu döndürür.

[Material](https://gmod.tr/wiki/Global.Material) ile yüklenen `.png/.jpg` dokuları için, resmin boyutunu almak amacıyla `$realheight` ve `$realwidth` materyal parametrelerini ([IMaterial:GetInt](https://gmod.tr/wiki/IMaterial:GetInt)) kullanabilirsiniz.

## Argümanlar

1. [number](https://gmod.tr/wiki/number) **textureID**: [surface.GetTextureID](https://gmod.tr/wiki/surface.GetTextureID) tarafından döndürülen doku ID'si.

## Dönüş Değerleri

1. [number](https://gmod.tr/wiki/number): Dokunun genişliği.
2. [number](https://gmod.tr/wiki/number): Dokunun yüksekliği.

- [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/surface.GetTextureSize
