图像处理
44 个节点
本页内容 44
调整亮度
函数Returns a new ImageProcessor with brightness adjusted.
调整亮度(图像: Pixel Image, 值: 低精度数字) -> Pixel Image
PixelImage AdjustBrightness(PixelImage image, float value)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 值 | 低精度数字 | — | Brightness offset in [-255..255]. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
调整对比度
函数Returns a new ImageProcessor with contrast adjusted.
调整对比度(图像: Pixel Image, 对比度: 低精度数字) -> Pixel Image
PixelImage AdjustContrast(PixelImage image, float contrast)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 对比度 | 低精度数字 | — | Contrast factor where 1 is no change. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
调整饱和度
函数Returns a new ImageProcessor with saturation adjusted.
调整饱和度(图像: Pixel Image, 饱和度: 低精度数字) -> Pixel Image
PixelImage AdjustSaturation(PixelImage image, float saturation)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 饱和度 | 低精度数字 | — | Saturation factor where 1 is no change. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
应用颜色渐变
函数此节点没有文档说明。
应用颜色渐变 -> Pixel Image
灰度蒙版: Pixel Image
渐变色标: IReadOnlyList<Color Stop>PixelImage ApplyColorRamp(
PixelImage grayscaleMask,
IReadOnlyList<ColorStop> colorStops)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 灰度蒙版 | Pixel Image | — | |
| 渐变色标 | IReadOnlyList<Color Stop> | — |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
应用纹理渐变
函数重载 1/4
应用纹理渐变 -> Pixel Image
位置图像: I Pixel Image Sampler
渐变: TextureRamp
纹理插值: PixelInterpolation
颜色插值: TextureRampColorInterpolationPixelImage ApplyTextureRamp(
IPixelImageSampler positionImage,
TextureRamp ramp,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)Applies a texture ramp using the source preview value as the ramp position.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| 纹理插值 | PixelInterpolation | 双线性 | |
| 颜色插值 | TextureRampColorInterpolation | 不透明 RGB |
返回
| 结果 | Pixel Image |
备注
Each output pixel samples the ramp at positionImage.GetFloatValue(x, y).
Texture UV is derived from output pixel coordinates and wraps by default.
重载 2/4
应用纹理渐变 -> Pixel Image
位置图像: I Pixel Image Sampler
渐变: TextureRamp
U 向平铺: 数字
V 向平铺: 数字
U 向偏移: 数字
V 向偏移: 数字
纹理插值: PixelInterpolation
颜色插值: TextureRampColorInterpolationPixelImage ApplyTextureRamp(
IPixelImageSampler positionImage,
TextureRamp ramp,
double tileU,
double tileV,
double offsetU = 0,
double offsetV = 0,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)Applies a texture ramp using tiled normalized UV coordinates.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| U 向平铺 | 数字 | — | |
| V 向平铺 | 数字 | — | |
| U 向偏移 | 数字 | 0 | |
| V 向偏移 | 数字 | 0 | |
| 纹理插值 | PixelInterpolation | 双线性 | |
| 颜色插值 | TextureRampColorInterpolation | 不透明 RGB |
返回
| 结果 | Pixel Image |
重载 3/4
应用纹理渐变 -> Pixel Image
位置图像: I Pixel Image Sampler
渐变: TextureRamp
混合函数: Blend Mode
强度: 低精度数字
纹理插值: PixelInterpolationPixelImage ApplyTextureRamp(
IPixelImageSampler positionImage,
TextureRamp ramp,
MixFunction mixFunction,
float strength = 1f,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear)Applies a texture ramp using a blend mode between neighboring texture stops.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| 混合函数 | Blend Mode | — | |
| 强度 | 低精度数字 | 1 | |
| 纹理插值 | PixelInterpolation | 双线性 |
返回
| 结果 | Pixel Image |
重载 4/4
应用纹理渐变 -> Pixel Image
位置图像: I Pixel Image Sampler
渐变: TextureRamp
混合函数: Blend Mode
强度: 低精度数字
U 向平铺: 数字
V 向平铺: 数字
U 向偏移: 数字
V 向偏移: 数字
纹理插值: PixelInterpolationPixelImage ApplyTextureRamp(
IPixelImageSampler positionImage,
TextureRamp ramp,
MixFunction mixFunction,
float strength,
double tileU,
double tileV,
double offsetU = 0,
double offsetV = 0,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear)Applies a texture ramp using a blend mode between neighboring texture stops, with tiled normalized UV coordinates.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| 混合函数 | Blend Mode | — | |
| 强度 | 低精度数字 | — | |
| U 向平铺 | 数字 | — | |
| V 向平铺 | 数字 | — | |
| U 向偏移 | 数字 | 0 | |
| V 向偏移 | 数字 | 0 | |
| 纹理插值 | PixelInterpolation | 双线性 |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
按映射应用纹理渐变
函数重载 1/2
按映射应用纹理渐变 -> Pixel Image
归一化位置图像: I Pixel Image Sampler
渐变: TextureRamp
起始位置: 数字
结束位置: 数字
纹理插值: PixelInterpolation
颜色插值: TextureRampColorInterpolationPixelImage ApplyTextureRampMapped(
IPixelImageSampler normalizedPositionImage,
TextureRamp ramp,
double positionStart,
double positionEnd,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)Applies a texture ramp after remapping normalized source values into a scalar ramp domain.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 归一化位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| 起始位置 | 数字 | — | |
| 结束位置 | 数字 | — | |
| 纹理插值 | PixelInterpolation | 双线性 | |
| 颜色插值 | TextureRampColorInterpolation | 不透明 RGB |
返回
| 结果 | Pixel Image |
重载 2/2
按映射应用纹理渐变 -> Pixel Image
归一化位置图像: I Pixel Image Sampler
渐变: TextureRamp
起始位置: 数字
结束位置: 数字
U 向平铺: 数字
V 向平铺: 数字
U 向偏移: 数字
V 向偏移: 数字
纹理插值: PixelInterpolation
颜色插值: TextureRampColorInterpolationPixelImage ApplyTextureRampMapped(
IPixelImageSampler normalizedPositionImage,
TextureRamp ramp,
double positionStart,
double positionEnd,
double tileU,
double tileV,
double offsetU = 0,
double offsetV = 0,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)Applies a texture ramp after remapping normalized source values into a scalar ramp domain, with tiled normalized UV coordinates.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 归一化位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| 起始位置 | 数字 | — | |
| 结束位置 | 数字 | — | |
| U 向平铺 | 数字 | — | |
| V 向平铺 | 数字 | — | |
| U 向偏移 | 数字 | 0 | |
| V 向偏移 | 数字 | 0 | |
| 纹理插值 | PixelInterpolation | 双线性 | |
| 颜色插值 | TextureRampColorInterpolation | 不透明 RGB |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
按区间应用纹理渐变
函数Applies a texture ramp by mapping normalized source values to the ramp's own domain.
按区间应用纹理渐变 -> Pixel Image
归一化位置图像: I Pixel Image Sampler
渐变: TextureRamp
纹理插值: PixelInterpolation
颜色插值: TextureRampColorInterpolationPixelImage ApplyTextureRampToDomain(
IPixelImageSampler normalizedPositionImage,
TextureRamp ramp,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear,
TextureRampColorInterpolation colorInterpolation = TextureRampColorInterpolation.OpaqueRgb)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 归一化位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| 纹理插值 | PixelInterpolation | 双线性 | |
| 颜色插值 | TextureRampColorInterpolation | 不透明 RGB |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
混合纹理渐变
函数Blends a sampled texture ramp over a base image.
混合纹理渐变 -> Pixel Image
基础图像: Pixel Image
位置图像: I Pixel Image Sampler
渐变: TextureRamp
混合函数: Blend Mode
强度倍数: 低精度数字
纹理插值: PixelInterpolationPixelImage BlendTextureRamp(
PixelImage baseImage,
IPixelImageSampler positionImage,
TextureRamp ramp,
MixFunction mixFunction,
float strengthMultiplier = 1f,
PixelInterpolation textureInterpolation = PixelInterpolation.Bilinear)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 基础图像 | Pixel Image | — | |
| 位置图像 | I Pixel Image Sampler | — | |
| 渐变 | TextureRamp | — | |
| 混合函数 | Blend Mode | — | |
| 强度倍数 | 低精度数字 | 1 | |
| 纹理插值 | PixelInterpolation | 双线性 |
返回
| 结果 | Pixel Image |
备注
Sampled texture alpha is used as an additional strength multiplier.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
模糊
函数重载 1/2
模糊 -> Pixel Image
源: Pixel Image
蒙版: I Pixel Image Sampler
强度: 低精度数字PixelImage Blur(
PixelImage source,
IPixelImageSampler mask,
float intensity)Applies a masked box blur to the image.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 蒙版 | I Pixel Image Sampler | — | Grayscale mask controlling blur strength per pixel. |
| 强度 | 低精度数字 | — | Maximum blur intensity. |
返回
| 结果 | Pixel Image |
重载 2/2
模糊(图像: Pixel Image, 半径: 低精度数字) -> Pixel Image
PixelImage Blur(PixelImage image, float radius)
Returns a new ImageProcessor with a Gaussian blur applied.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 半径 | 低精度数字 | — | Blur radius. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
方框模糊
函数Applies a (separable) box blur to the image using the specified radius.
方框模糊(源: Pixel Image, 半径: 整数) -> Pixel Image
PixelImage BoxBlur(PixelImage source, int radius)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 半径 | 整数 | — | Blur radius in pixels. Values <= 0 return a clone of the source. |
返回
| 结果 | Pixel Image |
备注
Each output pixel becomes the average of nearby pixels inside a rectangular “box” area.
In 2D blur, separable box blur is split into two 1D passes.
Notice a non-separable implementation acheives same result but is not going to be faster because the box kernel is separable.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
对比度
函数重载 1/2
对比度(源: Pixel Image, 强度: 低精度数字) -> Pixel Image
PixelImage Contrast(PixelImage source, float intensity)
Adjusts contrast of the image.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 强度 | 低精度数字 | — | Contrast intensity. |
返回
| 结果 | Pixel Image |
重载 2/2
对比度 -> Pixel Image
源: Pixel Image
蒙版: GrayscaleImage
强度: 低精度数字PixelImage Contrast(
PixelImage source,
GrayscaleImage mask,
float intensity)Adjusts contrast of the image using a mask.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 蒙版 | GrayscaleImage | — | Grayscale mask controlling blend strength. |
| 强度 | 低精度数字 | — | Contrast intensity. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
立方体贴图转等距柱状投影图像
函数此节点没有文档说明。
立方体贴图转等距柱状投影图像(立方体贴图布局: Pixel Image) -> Pixel Image
PixelImage ConvertCubeMapImageToEquirectangularImage(PixelImage cubeMapLayout)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 立方体贴图布局 | Pixel Image | — |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
等距柱状投影图像转立方体贴图
函数Converts equirectangular map to cubemap.
等距柱状投影图像转立方体贴图 -> Pixel Image
等距柱状投影图像: Pixel Image
面尺寸: 整数PixelImage ConvertEquirectangularImageToCubeMapImage(
PixelImage equirectangular,
int faceSize = 256)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 等距柱状投影图像 | Pixel Image | — | |
| 面尺寸 | 整数 | 256 |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
创建图像变换
函数Creates a tiled transform around the center of a tile.
创建图像变换 -> Image Transform
平移: Vector2
缩放: Vector2
旋转角度(弧度): 低精度数字ImageTransform CreateImageTransform(
Vector2 translation,
Vector2 scale,
float rotationRadians)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 平移 | Vector2 | — | |
| 缩放 | Vector2 | — | |
| 旋转角度(弧度) | 低精度数字 | — |
返回
| 结果 | Image Transform |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
创建平铺变换
函数Creates a tiled transform. Translation is in destination pixel space. Pivot is in UV/tile space.
创建平铺变换 -> Image Transform
平移: Vector2
缩放: Vector2
旋转角度(弧度): 低精度数字
枢轴点: Vector2ImageTransform CreateTileTransform(
Vector2 translation,
Vector2 scale,
float rotationRadians,
Vector2 pivot)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 平移 | Vector2 | — | |
| 缩放 | Vector2 | — | |
| 旋转角度(弧度) | 低精度数字 | — | |
| 枢轴点 | Vector2 | — |
返回
| 结果 | Image Transform |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
裁剪
函数Returns a new ImageProcessor containing a cropped region of the image.
裁剪 -> Pixel Image
图像: Pixel Image
X: 整数
Y: 整数
裁剪宽度: 整数
裁剪高度: 整数PixelImage Crop(
PixelImage image,
int x,
int y,
int cropWidth,
int cropHeight)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| X | 整数 | — | |
| Y | 整数 | — | |
| 裁剪宽度 | 整数 | — | |
| 裁剪高度 | 整数 | — |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
从像素图像获取 Base64 文本
函数Convert byte array to Base64 string
从像素图像获取 Base64 文本(像素图像: Pixel Image) -> 文本
string GetBase64StringFromPixelImage(PixelImage pixelImage)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 像素图像 | Pixel Image | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
HSL 调整
函数重载 1/2
HSL 调整 -> Pixel Image
源: Pixel Image
色相变化: 低精度数字
饱和度变化: 低精度数字
明度变化: 低精度数字PixelImage HSL(
PixelImage source,
float hueDelta,
float saturationDelta,
float lightnessDelta)Adjusts HSL components of the image.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 色相变化 | 低精度数字 | — | Hue adjustment. |
| 饱和度变化 | 低精度数字 | — | Saturation adjustment. |
| 明度变化 | 低精度数字 | — | Lightness adjustment. |
返回
| 结果 | Pixel Image |
重载 2/2
HSL 调整 -> Pixel Image
源: Pixel Image
色相变化: 低精度数字
饱和度变化: 低精度数字
明度变化: 低精度数字
蒙版: I Pixel Image SamplerPixelImage HSL(
PixelImage source,
float hueDelta,
float saturationDelta,
float lightnessDelta,
IPixelImageSampler mask)Adjusts HSL components of the image using a mask.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 色相变化 | 低精度数字 | — | Hue adjustment. |
| 饱和度变化 | 低精度数字 | — | Saturation adjustment. |
| 明度变化 | 低精度数字 | — | Lightness adjustment. |
| 蒙版 | I Pixel Image Sampler | — | Grayscale mask controlling blend strength. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
HSV 调整
函数重载 1/2
HSV 调整 -> Pixel Image
源: Pixel Image
色相变化: 低精度数字
饱和度变化: 低精度数字
明度变化: 低精度数字PixelImage HSV(
PixelImage source,
float hueDelta,
float saturationDelta,
float valueDelta)Adjusts HSV components of the image.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 色相变化 | 低精度数字 | — | Hue adjustment. |
| 饱和度变化 | 低精度数字 | — | Saturation adjustment. |
| 明度变化 | 低精度数字 | — | Value (brightness) adjustment. |
返回
| 结果 | Pixel Image |
重载 2/2
HSV 调整 -> Pixel Image
源: Pixel Image
色相变化: 低精度数字
饱和度变化: 低精度数字
明度变化: 低精度数字
蒙版: I Pixel Image SamplerPixelImage HSV(
PixelImage source,
float hueDelta,
float saturationDelta,
float valueDelta,
IPixelImageSampler mask)Adjusts HSV components of the image using a mask.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 色相变化 | 低精度数字 | — | Hue adjustment. |
| 饱和度变化 | 低精度数字 | — | Saturation adjustment. |
| 明度变化 | 低精度数字 | — | Value (brightness) adjustment. |
| 蒙版 | I Pixel Image Sampler | — | Grayscale mask controlling blend strength. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
色相偏移
函数Returns a new ImageProcessor with hue shifted by the specified degrees.
色相偏移(图像: Pixel Image, 角度: 低精度数字) -> Pixel Image
PixelImage HueShift(PixelImage image, float degrees)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 角度 | 低精度数字 | — | Degrees to shift hue. Negative values shift backward. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
图像纹理平铺预览
函数Creates a tiled preview image by repeatedly drawing the source image in a grid.
图像纹理平铺预览 -> Pixel Image
源: Pixel Image
X 向平铺: 整数
Y 向平铺: 整数
绘制红色边界: 真否PixelImage ImageTextureTilePreview(
PixelImage source,
int tileX,
int tileY,
bool drawRedBound = true)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | The source texture image to tile. |
| X 向平铺 | 整数 | — | The number of horizontal tile repetitions. |
| Y 向平铺 | 整数 | — | The number of vertical tile repetitions. |
| 绘制红色边界 | 真否 | True | If true, draws a red rectangle centered in the output image with the same size as the original source texture. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
反相
函数Returns a new ImageProcessor where the colors are inverted.
反相(图像: Pixel Image) -> Pixel Image
PixelImage Invert(PixelImage image)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
混合
函数此节点没有文档说明。
重载 1/2
混合 -> Pixel Image
混合函数: Blend Mode
源 1: I Pixel Image Sampler
源 2: I Pixel Image SamplerPixelImage Mix(
MixFunction functionEnum,
IPixelImageSampler source1,
IPixelImageSampler source2)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 混合函数 | Blend Mode | — | |
| 源 1 | I Pixel Image Sampler | — | |
| 源 2 | I Pixel Image Sampler | — |
返回
| 结果 | Pixel Image |
重载 2/2
混合 -> Pixel Image
混合函数: Blend Mode
源 1: I Pixel Image Sampler
源 2: I Pixel Image Sampler
强度: 低精度数字PixelImage Mix(
MixFunction functionEnum,
IPixelImageSampler source1,
IPixelImageSampler source2,
float strength)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 混合函数 | Blend Mode | — | |
| 源 1 | I Pixel Image Sampler | — | |
| 源 2 | I Pixel Image Sampler | — | |
| 强度 | 低精度数字 | — | Blend-mode intensity, 0 means “no source effect” and 1 means previous default behavior. For modes like Add and Subtract, value can be above 1 so the source can be amplified. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
混合(带蒙版)
函数此节点没有文档说明。
重载 1/4
混合(带蒙版) -> Pixel Image
方式: Blend Mode
基础图像: Pixel Image
混合图像: Pixel Image
蒙版: I Pixel Image SamplerPixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blenderImage,
IPixelImageSampler mask)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 方式 | Blend Mode | — | |
| 基础图像 | Pixel Image | — | |
| 混合图像 | Pixel Image | — | |
| 蒙版 | I Pixel Image Sampler | — |
返回
| 结果 | Pixel Image |
重载 2/4
混合(带蒙版) -> Pixel Image
方式: Blend Mode
基础图像: Pixel Image
混合图像: Pixel Image
不透明度蒙版: I Pixel Image Sampler
强度倍数: 低精度数字PixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blendImage,
IPixelImageSampler opacityMask,
float strengthMultiplier = 1f)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 方式 | Blend Mode | — | |
| 基础图像 | Pixel Image | — | |
| 混合图像 | Pixel Image | — | |
| 不透明度蒙版 | I Pixel Image Sampler | — | opacity = 0 -> baseImage opacity = 1 -> blendImage applied over baseImage |
| 强度倍数 | 低精度数字 | 1 |
返回
| 结果 | Pixel Image |
备注
For most non-linear modes, strength behaves like opacity between the base and the full blend result. For Add and Subtract, it scales the blend image contribution.
重载 3/4
混合(带蒙版) -> Pixel Image
方式: Blend Mode
基础图像: Pixel Image
混合图像: Pixel Image
蒙版: Pixel ImagePixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blenderImage,
PixelImage mask)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 方式 | Blend Mode | — | |
| 基础图像 | Pixel Image | — | |
| 混合图像 | Pixel Image | — | |
| 蒙版 | Pixel Image | — |
返回
| 结果 | Pixel Image |
重载 4/4
混合(带蒙版) -> Pixel Image
方式: Blend Mode
基础图像: Pixel Image
混合图像: Pixel Image
不透明度蒙版: Pixel Image
强度倍数: 低精度数字PixelImage Mix(
MixFunction mode,
PixelImage baseImage,
PixelImage blendImage,
PixelImage opacityMask,
float strengthMultiplier = 1f)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 方式 | Blend Mode | — | |
| 基础图像 | Pixel Image | — | |
| 混合图像 | Pixel Image | — | |
| 不透明度蒙版 | Pixel Image | — | opacity = 0 -> baseImage opacity = 1 -> blendImage applied over baseImage |
| 强度倍数 | 低精度数字 | 1 |
返回
| 结果 | Pixel Image |
备注
For most non-linear modes, strength behaves like opacity between the base and the full blend result. For Add and Subtract, it scales the blend image contribution.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
取反
函数重载 1/3
取反(源: Pixel Image) -> Pixel Image
PixelImage Negate(PixelImage source)
Inverts RGB channels of the image.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
返回
| 结果 | Pixel Image |
重载 2/3
取反(蒙版: GrayscaleImage) -> GrayscaleImage
GrayscaleImage Negate(GrayscaleImage mask)
Inverts grayscale values.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 蒙版 | GrayscaleImage | — | Source grayscale image. |
返回
| 结果 | GrayscaleImage |
重载 3/3
取反(蒙版: Grayscale16BitImage) -> Grayscale16BitImage
Grayscale16BitImage Negate(Grayscale16BitImage mask)
Inverts grayscale values.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 蒙版 | Grayscale16BitImage | — | Source grayscale image. |
返回
| 结果 | Grayscale16BitImage |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
偏移
函数此节点没有文档说明。
重载 1/4
偏移(渐变: Color Ramp, 偏移: 数字) -> Color Ramp
ColorRamp Offset(ColorRamp ramp, double offset)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | Color Ramp | — | |
| 偏移 | 数字 | — |
返回
| 结果 | Color Ramp |
重载 2/4
偏移(色标: IEnumerable<Color Stop>, 偏移: 数字) -> Color Ramp
ColorRamp Offset(IEnumerable<ColorStop> stops, double offset)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 色标 | IEnumerable<Color Stop> | — | |
| 偏移 | 数字 | — |
返回
| 结果 | Color Ramp |
重载 3/4
偏移(渐变: TextureRamp, 偏移: 数字) -> TextureRamp
TextureRamp Offset(TextureRamp ramp, double offset)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | TextureRamp | — | |
| 偏移 | 数字 | — |
返回
| 结果 | TextureRamp |
重载 4/4
偏移(色标: IEnumerable<TextureStop>, 偏移: 数字) -> TextureRamp
TextureRamp Offset(
IEnumerable<TextureStop> stops,
double offset)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 色标 | IEnumerable<TextureStop> | — | |
| 偏移 | 数字 | — |
返回
| 结果 | TextureRamp |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
填充边距
函数重载 1/2
填充边距 -> Pixel Image
源: Pixel Image
左侧: 整数
顶部: 整数
右侧: 整数
底部: 整数
背景处理方式: PixelImageOperations.PaddingBackgroundBehavior
背景颜色: 可选颜色PixelImage Padding(
PixelImage source,
int left,
int top,
int right,
int bottom,
PixelImageOperations.PaddingBackgroundBehavior backgroundBehavior = PaddingBackgroundBehavior.PureColor,
ColorElement? backgroundColor)Pads an image on all four sides.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
| 左侧 | 整数 | — | Padding added to the left side. |
| 顶部 | 整数 | — | Padding added to the top side. |
| 右侧 | 整数 | — | Padding added to the right side. |
| 底部 | 整数 | — | Padding added to the bottom side. |
| 背景处理方式 | PixelImageOperations.PaddingBackgroundBehavior | 纯色 | Background fill behavior. |
| 背景颜色 | 可选颜色 | — | Background color used when Background Behavior is PaddingBackgroundBehavior.PureColor. |
返回
| 结果 | Pixel Image |
重载 2/2
填充边距 -> Pixel Image
源: Pixel Image
左侧: 整数
顶部: 整数
右侧: 整数
底部: 整数
背景颜色: 颜色PixelImage Padding(
PixelImage source,
int left,
int top,
int right,
int bottom,
ColorElement backgroundColor)Pads an image on all four sides using a pure background color.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | |
| 左侧 | 整数 | — | |
| 顶部 | 整数 | — | |
| 右侧 | 整数 | — | |
| 底部 | 整数 | — | |
| 背景颜色 | 颜色 | — |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
扩展填充边距
函数Pads an image on all four sides by extending the nearest existing edge pixels.
扩展填充边距 -> Pixel Image
源: Pixel Image
左侧: 整数
顶部: 整数
右侧: 整数
底部: 整数PixelImage PaddingExtend(
PixelImage source,
int left,
int top,
int right,
int bottom)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | |
| 左侧 | 整数 | — | |
| 顶部 | 整数 | — | |
| 右侧 | 整数 | — | |
| 底部 | 整数 | — |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
移除透明通道
函数Removes transparency by setting all alpha values to 255.
移除透明通道(源: Pixel Image) -> Pixel Image
PixelImage RemoveAlpha(PixelImage source)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | Source image. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
调整大小
函数Resizes a Image.PixelImage to the target dimensions.
调整大小 -> Pixel Image
源: Pixel Image
宽度: 整数
高度: 整数
插值方式: PixelInterpolationPixelImage Resize(
PixelImage source,
int width,
int height,
PixelInterpolation interpolation = PixelInterpolation.Bilinear)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | |
| 宽度 | 整数 | — | Target image width. |
| 高度 | 整数 | — | Target image height. |
| 插值方式 | PixelInterpolation | 双线性 |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
按采样方式调整大小
函数Returns a new Image.PixelImage with the image resized to the specified width and height.
按采样方式调整大小 -> Pixel Image
图像: Pixel Image
新宽度: 整数
新高度: 整数
采样方式: SamplingModePixelImage ResizeSampled(
PixelImage image,
int newWidth,
int newHeight,
SamplingMode sampling = SamplingMode.Bicubic)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 新宽度 | 整数 | — | |
| 新高度 | 整数 | — | |
| 采样方式 | SamplingMode | 双三次 |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
翻转
函数此节点没有文档说明。
重载 1/4
翻转(渐变: Color Ramp) -> Color Ramp
ColorRamp Reverse(ColorRamp ramp)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | Color Ramp | — |
返回
| 结果 | Color Ramp |
重载 2/4
翻转(色标: IEnumerable<Color Stop>) -> Color Ramp
ColorRamp Reverse(IEnumerable<ColorStop> stops)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 色标 | IEnumerable<Color Stop> | — |
返回
| 结果 | Color Ramp |
重载 3/4
翻转(渐变: TextureRamp) -> TextureRamp
TextureRamp Reverse(TextureRamp ramp)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | TextureRamp | — |
返回
| 结果 | TextureRamp |
重载 4/4
翻转(色标: IEnumerable<TextureStop>) -> TextureRamp
TextureRamp Reverse(IEnumerable<TextureStop> stops)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 色标 | IEnumerable<TextureStop> | — |
返回
| 结果 | TextureRamp |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
旋转
函数Returns a new ImageProcessor with the image rotated by the specified degrees.
旋转(图像: Pixel Image, 角度: 低精度数字) -> Pixel Image
PixelImage Rotate(PixelImage image, float degrees)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 角度 | 低精度数字 | — |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
缩放区间
函数此节点没有文档说明。
重载 1/7
缩放区间 -> Color Ramp
渐变: Color Ramp
目标起始值: 数字
目标结束值: 数字ColorRamp ScaleDomain(
ColorRamp ramp,
double targetStart,
double targetEnd)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | Color Ramp | — | |
| 目标起始值 | 数字 | — | |
| 目标结束值 | 数字 | — |
返回
| 结果 | Color Ramp |
重载 2/7
缩放区间 -> Color Ramp
色标: IEnumerable<Color Stop>
目标起始值: 数字
目标结束值: 数字ColorRamp ScaleDomain(
IEnumerable<ColorStop> stops,
double targetStart,
double targetEnd)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 色标 | IEnumerable<Color Stop> | — | |
| 目标起始值 | 数字 | — | |
| 目标结束值 | 数字 | — |
返回
| 结果 | Color Ramp |
重载 3/7
缩放区间 -> Color Ramp
渐变: Color Ramp
源起始位置: 数字
源结束值: 数字
目标起始值: 数字
目标结束值: 数字ColorRamp ScaleDomain(
ColorRamp ramp,
double sourceStart,
double sourceEnd,
double targetStart,
double targetEnd)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | Color Ramp | — | |
| 源起始位置 | 数字 | — | |
| 源结束值 | 数字 | — | |
| 目标起始值 | 数字 | — | |
| 目标结束值 | 数字 | — |
返回
| 结果 | Color Ramp |
重载 4/7
缩放区间 -> Color Ramp
色标: IEnumerable<Color Stop>
源起始位置: 数字
源结束值: 数字
目标起始值: 数字
目标结束值: 数字ColorRamp ScaleDomain(
IEnumerable<ColorStop> stops,
double sourceStart,
double sourceEnd,
double targetStart,
double targetEnd)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 色标 | IEnumerable<Color Stop> | — | |
| 源起始位置 | 数字 | — | |
| 源结束值 | 数字 | — | |
| 目标起始值 | 数字 | — | |
| 目标结束值 | 数字 | — |
返回
| 结果 | Color Ramp |
重载 5/7
缩放区间 -> TextureRamp
渐变: TextureRamp
目标起始值: 数字
目标结束值: 数字TextureRamp ScaleDomain(
TextureRamp ramp,
double targetStart,
double targetEnd)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | TextureRamp | — | |
| 目标起始值 | 数字 | — | |
| 目标结束值 | 数字 | — |
返回
| 结果 | TextureRamp |
重载 6/7
缩放区间 -> TextureRamp
色标: IEnumerable<TextureStop>
目标起始值: 数字
目标结束值: 数字TextureRamp ScaleDomain(
IEnumerable<TextureStop> stops,
double targetStart,
double targetEnd)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 色标 | IEnumerable<TextureStop> | — | |
| 目标起始值 | 数字 | — | |
| 目标结束值 | 数字 | — |
返回
| 结果 | TextureRamp |
重载 7/7
缩放区间 -> TextureRamp
渐变: TextureRamp
源起始位置: 数字
源结束值: 数字
目标起始值: 数字
目标结束值: 数字TextureRamp ScaleDomain(
TextureRamp ramp,
double sourceStart,
double sourceEnd,
double targetStart,
double targetEnd)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 渐变 | TextureRamp | — | |
| 源起始位置 | 数字 | — | |
| 源结束值 | 数字 | — | |
| 目标起始值 | 数字 | — | |
| 目标结束值 | 数字 | — |
返回
| 结果 | TextureRamp |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
锐化
函数Returns a new ImageProcessor with a sharpen effect applied.
锐化(图像: Pixel Image, 量: 低精度数字) -> Pixel Image
PixelImage Sharpen(PixelImage image, float amount)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — | |
| 量 | 低精度数字 | — | Sharpen intensity. |
返回
| 结果 | Pixel Image |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
带重叠拆分图像
函数此节点没有文档说明。
带重叠拆分图像 -> Pixel Image 数组数组
源: Pixel Image
行数: 整数
列数: 整数
像素重叠: 整数PixelImage[][] SplitImageWithOverlap(
PixelImage source,
int rows,
int columns,
int pixelOverlap = 0)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | |
| 行数 | 整数 | — | |
| 列数 | 整数 | — | |
| 像素重叠 | 整数 | 0 |
返回
| 结果 | Pixel Image 数组数组 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
阈值化
函数Converts a grayscale image to a binary image using a threshold.
阈值化 -> Grayscale16BitImage
源: I Pixel Image Sampler
阈值: 低精度数字Grayscale16BitImage Threshold(
IPixelImageSampler source,
float thresholdF)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | I Pixel Image Sampler | — | Source grayscale image. |
| 阈值 | 低精度数字 | — | Threshold in range [0,1]. Values above 1 are clamped. |
返回
| 结果 | Grayscale16BitImage |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
平铺纹理
函数重载 1/2
平铺纹理 -> Pixel Image
纹理样本: Pixel Image
宽度: 整数
高度: 整数
变换: Image Transform
插值方式: PixelInterpolationPixelImage TileTexture(
PixelImage textureSample,
int width,
int height,
ImageTransform transform,
PixelInterpolation interpolation = PixelInterpolation.Bilinear)Tiles Texture Sample into a destination image with an explicit pixel size.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 纹理样本 | Pixel Image | — | The source texture image to repeat. |
| 宽度 | 整数 | — | The destination image width in pixels. |
| 高度 | 整数 | — | The destination image height in pixels. |
| 变换 | Image Transform | — | Texture-placement transform applied in destination pixel space. |
| 插值方式 | PixelInterpolation | 双线性 | The interpolation mode used when sampling the source texture. |
返回
| 结果 | Pixel Image |
备注
This overload treats Transform as a texture-placement transform in destination pixel space.
The destination size is determined by Texture Sample.
With ImageTransform.Identity, one source pixel maps to one destination pixel and wrapping repeats the source image automatically as needed. For example, a 128x128 source rendered into a 512x512 destination produces approximately 4x4 repetitions.
ImageTransform.Scale controls the visual size of each repeated texture tile. A scale of (2, 2) makes each tile twice as large in destination pixels, therefore producing fewer visible repetitions. A scale of (0.5, 0.5) makes each tile half as large, therefore producing more visible repetitions.
ImageTransform.Translation is measured in destination pixels and moves the visible texture placement.
Positive X moves the texture to the right; positive Y moves it downward.
ImageTransform.Rotation is measured in degrees and rotates the texture placement before wrapping.
ImageTransform.Pivot is measured in source texture UV space. A pivot of (0, 0) is the source texture origin; a pivot of (0.5, 0.5) is the center of one source texture tile.
重载 2/2
平铺纹理 -> Pixel Image
纹理样本: Pixel Image
宽度: 整数
高度: 整数
插值方式: PixelInterpolationPixelImage TileTexture(
PixelImage textureSample,
int width,
int height,
PixelInterpolation interpolation = PixelInterpolation.Bilinear)Tiles Texture Sample into a destination image with an explicit pixel size and no additional transform.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 纹理样本 | Pixel Image | — | The source texture image to repeat. |
| 宽度 | 整数 | — | The destination image width in pixels. |
| 高度 | 整数 | — | The destination image height in pixels. |
| 插值方式 | PixelInterpolation | 双线性 | The interpolation mode used when sampling the source texture. |
返回
| 结果 | Pixel Image |
备注
The destination size is determined by Texture Sample.
With identity placement, one source pixel maps to one destination pixel and wrapping repeats the source image automatically as needed. For example, a 128x128 source rendered into a 512x512 destination produces approximately 4x4 repetitions.
TODO:
- [ ] Refactor image transform handling with Interfaces.IPixelImageSampler and a custom TransformTextureLayer which implements IPixelImageSampler.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
按数量平铺纹理
函数重载 1/2
按数量平铺纹理 -> Pixel Image
源: Pixel Image
U 向平铺数: 整数
V 向平铺数: 整数
变换: Image Transform
插值方式: PixelInterpolationPixelImage TileTextureByCount(
PixelImage source,
int tileCountU,
int tileCountV,
ImageTransform transform,
PixelInterpolation interpolation = PixelInterpolation.Bilinear)Tiles Source by U/V repetition counts, deriving the destination size from the source texture size and transform scale.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | The source texture image to repeat. |
| U 向平铺数 | 整数 | — | The intended number of source texture repetitions used to derive destination width. |
| V 向平铺数 | 整数 | — | The intended number of source texture repetitions used to derive destination height. |
| 变换 | Image Transform | — | Texture-placement transform applied in destination pixel space. |
| 插值方式 | PixelInterpolation | 双线性 | The interpolation mode used when sampling the source texture. |
返回
| 结果 | Pixel Image |
备注
This overload is for cases where no explicit destination size is available.
The destination size is computed as:
width = ceiling(source.Columns * tileCountU * abs(transform.Scale.X))
height = ceiling(source.Rows * tileCountV * abs(transform.Scale.Y))
The tile counts are only used to derive the destination canvas size. They are not passed into the sampling transform.
Actual repetition is produced by wrapping the sampled source texture.
ImageTransform.Scale controls the visual size of each repeated texture tile. A scale of (2, 2) makes each tile twice as large in destination pixels, so a tile count of 2 produces a destination size large enough for two enlarged tiles. A negative scale mirrors the texture placement on that axis while its absolute value is used for destination size calculation.
ImageTransform.Translation is measured in destination pixels and moves the visible texture placement.
ImageTransform.Pivot is measured in source texture UV space. A pivot of (0.5, 0.5) is the center of
one source texture tile.
重载 2/2
按数量平铺纹理 -> Pixel Image
源: Pixel Image
U 向平铺数: 整数
V 向平铺数: 整数
插值方式: PixelInterpolationPixelImage TileTextureByCount(
PixelImage source,
int tileCountU,
int tileCountV,
PixelInterpolation interpolation = PixelInterpolation.Bilinear)Tiles Source by U/V repetition counts, deriving the destination size from the source texture size.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — | The source texture image to repeat. |
| U 向平铺数 | 整数 | — | The intended number of source texture repetitions used to derive destination width. |
| V 向平铺数 | 整数 | — | The intended number of source texture repetitions used to derive destination height. |
| 插值方式 | PixelInterpolation | 双线性 | The interpolation mode used when sampling the source texture. |
返回
| 结果 | Pixel Image |
备注
This overload is for cases where no explicit destination size is available.
The destination size is computed as:
width = source.Columns * tileCountU
height = source.Rows * tileCountV
The tile counts are only used to derive the destination canvas size. They are not passed into the sampling transform.
Actual repetition is produced by wrapping the sampled source texture.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
随机平铺纹理
函数Tiles Texture Sample into a destination image using stochastic texture tiling.
随机平铺纹理 -> Pixel Image
纹理样本: Pixel Image
宽度: 整数
高度: 整数
变换: Image Transform
随机变换范围: Image Transform
随机样本数: 整数
种子: 整数
随机单元大小: 低精度数字
插值方式: PixelInterpolationPixelImage TileTextureRandomized(
PixelImage textureSample,
int width,
int height,
ImageTransform transform,
ImageTransform randomTransformRange,
int randomizedSamples = 4,
int seed = 0,
float randomCellSize = 1f,
PixelInterpolation interpolation = PixelInterpolation.Bilinear)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 纹理样本 | Pixel Image | — | The source texture image to repeat. |
| 宽度 | 整数 | — | The destination image width in pixels. |
| 高度 | 整数 | — | The destination image height in pixels. |
| 变换 | Image Transform | — | Texture-placement transform applied in destination pixel space. |
| 随机变换范围 | Image Transform | — | Maximum per-cell random transform variation. Pivot is ignored. |
| 随机样本数 | 整数 | 4 | Number of stochastic samples to blend. Supported values are 1, 4, and 9. |
| 种子 | 整数 | 0 | Deterministic random seed. |
| 随机单元大小 | 低精度数字 | 1 | Stochastic tile stride in repeated source-tile units. |
| 插值方式 | PixelInterpolation | 双线性 | The interpolation mode used when sampling the source texture. |
返回
| 结果 | Pixel Image |
备注
This overload treats Transform the same way as PixelImageOperations.TileTexture:
it is a texture-placement transform in destination pixel space.
Stochastic tiling reduces visible repetition by blending several independently randomized versions of the repeated source texture.
The randomization is deterministic for a given Seed.
Random Transform Range specifies the maximum random variation applied to each stochastic sample:
ImageTransform.Translation is measured in source texture pixels and sampled in the range [-Translation, +Translation].
ImageTransform.Rotation is measured in degrees and sampled in the range [-Rotation, +Rotation].
ImageTransform.Scale is relative variation around 1. For example, a value of (0.15, 0.15) samples scale in the range [0.85, 1.15].
ImageTransform.Pivot is ignored.
Random Cell Size controls the stochastic tile stride in repeated source-tile units.
A value of 1 means each stochastic blend cell is approximately one repeated source texture tile.
A value of 2 means each stochastic blend cell spans approximately 2x2 repeated source texture tiles, producing larger random regions.
A value of 0.5 means each stochastic blend cell is half a repeated source tile, producing more frequent variation.
This value follows Transform, so scaling or rotating the texture placement also scales or rotates the stochastic cell layout.
Randomized Samples controls quality and cost. Supported values are 1, 4, and 9.
1 is fastest but does not blend between stochastic cells.
4 blends the four neighboring stochastic cells and is the recommended default.
9 blends a wider 3x3 neighborhood and is smoother but slower.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
转为灰度
函数Returns a new ImageProcessor with the image converted to grayscale.
转为灰度(图像: Pixel Image) -> GrayscaleImage
GrayscaleImage ToGrayscale(PixelImage image)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 图像 | Pixel Image | — |
返回
| 结果 | GrayscaleImage |
备注
The Skia implementation this replaced fed the matrix in column order, so it did not convert
to greyscale at all -- it scaled the channel sum by 0.2126, 0.7152 and 0.0722 respectively
and came out green. ColorFilter.CreateGrayscale carries the same Rec. 709
weights the old code meant to use.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
尝试提取二维码
函数此节点没有文档说明。
尝试提取二维码 -> (结果: Pixel Image, 裁剪范围: 可选 Image Crop Extent2d)
源图像: Pixel Image
裁剪边距: 整数PixelImage TryExtractQRCode(
PixelImage sourceImage,
out ImageCropExtent2D? cropExtent,
int cropMargin = 10)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源图像 | Pixel Image | — | |
| 裁剪边距 | 整数 | 10 |
返回
| 结果 | Pixel Image |
| 裁剪范围 | 可选 Image Crop Extent2d |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
尝试读取二维码
函数此节点没有文档说明。
尝试读取二维码(源图像: Pixel Image) -> 文本
string TryReadQRCode(PixelImage sourceImage)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源图像 | Pixel Image | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理
验证源图像是否可处理
函数此节点没有文档说明。
验证源图像是否可处理(源: Pixel Image)
void ValidateSourceImageForProcessingInput(PixelImage source)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 源 | Pixel Image | — |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 图像处理
- 所属包
- 图像处理