缩放节点¶
此节点对图像的尺寸进行缩放。
输入¶
- 图像
标准颜色输入。
- X、Y
在所选轴向上进行缩放,当 空间 设定为 相对 或 绝对 时可用。
属性¶
- 插值
Determines how pixel values are interpolated when scaling or transforming images.
- 最近:
Uses the value of the closest pixel with no smoothing. This is the fastest method and is well-suited for pixel art or low-resolution images where sharp, blocky edges are desirable. In animations, motion appears in single-pixel steps, which can cause visible jittering.
- 双线性:
Averages the values of surrounding pixels to create a smoother result than Nearest. Provides a good balance between performance and visual quality.
- 双立方:
Computes a weighted average of a larger neighborhood of pixels for even smoother results. Ideal for photographic images or gradients where preserving fine detail is important.
- 空间
缩放的相对应坐标空间。
- 相对:
相对于图像输入尺寸的百分比。
- 绝对:
使用绝对像素值作为图像的尺寸大小。
- 场景尺寸:
为场景最终渲染的分辨率大小进行自定义设置。比如,当渲染一个标准的 1080p 分辨率场景,但是设置渲染百分比为 50%,将会把渲染结果的尺寸进行缩放为原大小的一半,其余会用遮罩隐藏不显示。
- 渲染尺寸:
设置渲染面板的图像尺寸。
- 伸展,符合,裁切
伸展选项将对图片进行拉伸缩放延展以符合渲染尺寸。符合选项将对图像进行等比例缩放直到图像尺寸较大的轴向符合渲染尺寸为止。裁切将对图像进行切除,以便于和渲染尺寸保持相同的纵横比。
输出¶
- 图像
标准颜色输出。
示例¶
例如当 X: 0.5,Y: 0.5 时将会生成宽高为原尺寸一半的图像。
使用此节点适配图像尺寸。大多数节点产生一个和上部输入连接端口尺寸相同的图像结果。合并两幅不同尺寸的图像,第二幅图像不得不缩放其尺寸以符合第一幅图像的尺寸大小。