Transform

Moves, rotates and scales the picture inside a texture, over a background if one is given.

Outputs

NameTypeDescription
OutputTextureThe moved picture, over the background.

Inputs

NameTypeDescription
InputTextureThe texture to move.
BackgroundTextureWhat shows behind the moved picture, stretched over the whole output. With nothing connected the background is transparent.

Parameters

NameTypeDescription
SizeEnumWhere the size of the output comes from. Background takes it from the background, or from the input while no background is connected, Input from the input and Custom from Resolution.Choices: Background, Input, Custom
ResolutionVector 2 IntThe width and height of the output in pixels. Only present when Size is Custom.
TransformTransform 2DHow the picture is moved, turned and scaled, in pixels, with up as positive and angles counterclockwise.
Tiling XEnumWhat fills the space to the left and right of the picture. None leaves it transparent, Repeat repeats the picture, Mirror flips every other copy so the seams match and Clamp stretches the edge pixels.Choices: None, Repeat, Mirror, Clamp
Tiling YEnumWhat fills the space above and below the picture, with the same choices as Tiling X.Choices: None, Repeat, Mirror, Clamp
AnchorEnumThe point of the picture that lies on the same point of the output, and that the transform turns and scales around.Choices: Top Left, Top, Top Right, Left, Center, Right, Bottom Left, Bottom, Bottom Right
FilteradvancedEnumHow the picture, and a stretched background, are read between their pixels. Nearest keeps hard pixels, and Linear Nice keeps edges next to transparency clean.Choices: Nearest, Linear Fast, Linear Nice
FormatadvancedEnumThe pixel format of the output. Auto keeps the format of the input, or is wide enough for the input and the background when both are connected.

The Transform operator pans, zooms and rotates the picture inside a texture, over a background if one is connected. To place a logo in the corner of a video, connect the video as the background and move the logo. The transform is built with a Transform 2D operator. Set Tiling to Repeat to turn any texture into an endlessly scrolling pattern.

The background is stretched over the whole output, so a background of other proportions is distorted. A Resize in front of it keeps its proportions.

See also Blend, Resize, Crop.

Keywords: translate, rotate, scale, pan, zoom, tile, repeat, mirror, offset, layer, over, place