Learn
Motor Sınıfı
ImageLabel

*Bu içerik, yapay zekâ (beta) kullanılarak çevrildi ve hatalar içerebilir. Sayfayı İngilizce görüntülemek için buraya tıkla.


Özet
Devralınan Üyeler

API Referansı
Özellikler
Image
Paralel oku
Capabilities: UI
ImageLabel.Image:ContentId

ImageColor3
Paralel oku
Capabilities: UI
ImageLabel.ImageColor3:Color3

ImageContent
Paralel oku
Capabilities: UI
ImageLabel.ImageContent:Content

ImageRectOffset
Paralel oku
Capabilities: UI
ImageLabel.ImageRectOffset:Vector2

ImageRectSize
Paralel oku
Capabilities: UI
ImageLabel.ImageRectSize:Vector2

ImageTransparency
Paralel oku
Capabilities: UI
ImageLabel.ImageTransparency:number
Kod Örnekleri
Osilatör ResimŞeffaflığı
local RunService = game:GetService("RunService")
local imageLabel = script.Parent
local function onRenderStep()
-- ResimŞeffaflığını 0'dan 1'e sinüs dalgası kullanarak osilatör
imageLabel.ImageTransparency = math.sin(workspace.DistributedGameTime * math.pi) * 0.5 + 0.5
end
RunService.RenderStepped:Connect(onRenderStep)

IsLoaded
Salt Okunur
Çoğaltılmamış
Paralel oku
Capabilities: UI
ImageLabel.IsLoaded:boolean
Kod Örnekleri
Görüntü Yükleme Süresi
local imageLabel = script.Parent
local startTime = workspace.DistributedGameTime
-- Görüntünün yüklenmesini bekleyin
while not imageLabel.IsLoaded do
task.wait()
end
-- Yüklemek için ne kadar sürdüğünü ölçün ve gösterin
local deltaTime = workspace.DistributedGameTime - startTime
print(("Görüntü %.3f saniyede yüklendi"):format(deltaTime))

ResampleMode
Paralel oku
Capabilities: UI
ImageLabel.ResampleMode:Enum.ResamplerMode

ScaleType
Paralel oku
Capabilities: UI
ImageLabel.ScaleType:Enum.ScaleType

SliceCenter
Paralel oku
Capabilities: UI
ImageLabel.SliceCenter:Rect

SliceScale
Paralel oku
Capabilities: UI
ImageLabel.SliceScale:number

TileSize
Paralel oku
Capabilities: UI
ImageLabel.TileSize:UDim2
Kod Örnekleri
Görüntü Ölçekleme Tipi Demo
local imageLabel = script.Parent
-- Kaynak görüntüyü 64x64 bir kilit simgesi olarak ayarla
imageLabel.Image = "rbxassetid://284402752"
imageLabel.BackgroundTransparency = 0
imageLabel.BackgroundColor3 = Color3.new(1, 1, 1) -- Beyaz
imageLabel.ImageColor3 = Color3.new(0, 0, 0) -- Siyah
local function resizeInACircle()
for theta = 0, 2, 0.02 do
imageLabel.Size =
UDim2.new(0, 100 + math.cos(theta * 2 * math.pi) * 50, 0, 100 + math.sin(theta * 2 * math.pi) * 50)
task.wait()
end
end
while true do
-- Esnetme, kaynak görüntüyü UI elemanının alanına sığacak şekilde yalnızca esnetir
imageLabel.ScaleType = Enum.ScaleType.Stretch
resizeInACircle()
-- Fayans, kaynak görüntüyü birden çok kez çizecektir
-- UI elemanının alanını dolduracak kadar
imageLabel.ScaleType = Enum.ScaleType.Tile
imageLabel.TileSize = UDim2.new(0, 64, 0, 64)
resizeInACircle()
-- Dilimleme, görüntüyü dokuz dilimli bir UI'ya dönüştürür.
imageLabel.ScaleType = Enum.ScaleType.Slice
imageLabel.SliceCenter = Rect.new(30, 30, 34, 34)
resizeInACircle()
end

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.