相对于像素节点

相对于像素节点。

The Relative To Pixel node converts values that are relative to the image size into values in pixel units. This is useful when working with screen-space operations that require absolute pixel values, such as blurring or positioning effects in the compositor.

输入

数值

A float or vector value that is relative to the image size and should be converted to pixels.

图像

The image used to determine the resolution for the conversion. This defines the reference size used for computing pixel values.

属性

数据类型

要转换的数据类型。

浮点:

单个浮点值。

矢量:

A vector (e.g. 2D) value.

参照维度

定义相对值所参照的图像维度。

每个维度:

每个轴(X 和 Y)都根据图像宽度和高度独立缩放。

X:

该值相对于图像宽度进行缩放。

Y:

该值相对于图像高度进行缩放。

大于:

该值根据图像维度中较大的一个进行缩放。

较小:

该值根据图像维度中较小的一个进行缩放。

斜向:

该值相对于图像的对角线长度进行缩放。

输出

数值

将输入值从相对比例转换为绝对像素比例。输出类型与所选 数据类型 相匹配。