ImageContent
A picture you can draw into. Load a file, render a camera into it or paint other pictures over it, then use it on parts, skies, layers and nodes.
An ImageContent shows what was last drawn into it, by camera:RenderTo(image), DrawOnto, Stretch or Resample, else the file at its Path, else the bytes saved in the project. image:Clear() wipes it and source:DrawOnto(image) paints another picture over it. Drawn pixels stay in the project and never touch the file. Wire a picture into its Color or Alpha input in the Nodes window and it shows that instead, until you unwire it.
Examples
-- Studio is the scene a new project starts with
local studio = Root.Studio
local cam = studio.CurrentCamera
local shot = Instance.new('ImageContent', game); shot.Name = 'Shot'; shot.Size = Vector2.new(320, 240)
cam:RenderTo(shot)local small = Instance.new("ImageContent")
small.Name = "Small"
small.Size = Vector2.new(100, 50)
small:Clear(Color3.new(1, 0, 0))
small:Stretch(Vector2.new(64, 32))From Instance 22
Subclasses
