元编程参考文档

图像处理

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
    颜色插值: TextureRampColorInterpolation
PixelImage 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
    颜色插值: TextureRampColorInterpolation
PixelImage 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
    强度: 低精度数字
    纹理插值: PixelInterpolation
PixelImage 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 向偏移: 数字
    纹理插值: PixelInterpolation
PixelImage 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
    颜色插值: TextureRampColorInterpolation
PixelImage 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
    颜色插值: TextureRampColorInterpolation
PixelImage 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
    颜色插值: TextureRampColorInterpolation
PixelImage 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
    强度倍数: 低精度数字
    纹理插值: PixelInterpolation
PixelImage 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
    旋转角度(弧度): 低精度数字
    枢轴点: Vector2
ImageTransform 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 Sampler
PixelImage 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 Sampler
PixelImage 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.
绘制红色边界真否TrueIf 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 Sampler
PixelImage Mix(
    MixFunction functionEnum,
    IPixelImageSampler source1,
    IPixelImageSampler source2)

参数

名称类型默认值说明
混合函数Blend Mode—
源 1I Pixel Image Sampler—
源 2I 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—
源 1I Pixel Image Sampler—
源 2I 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 Sampler
PixelImage 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 Image
PixelImage 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
    宽度: 整数
    高度: 整数
    插值方式: PixelInterpolation
PixelImage 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
    新宽度: 整数
    新高度: 整数
    采样方式: SamplingMode
PixelImage 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
    插值方式: PixelInterpolation
PixelImage 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
    宽度: 整数
    高度: 整数
    插值方式: PixelInterpolation
PixelImage 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
    插值方式: PixelInterpolation
PixelImage 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 向平铺数: 整数
    插值方式: PixelInterpolation
PixelImage 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
    随机样本数: 整数
    种子: 整数
    随机单元大小: 低精度数字
    插值方式: PixelInterpolation
PixelImage 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.
随机样本数整数4Number of stochastic samples to blend. Supported values are 1, 4, and 9.
种子整数0Deterministic random seed.
随机单元大小低精度数字1Stochastic 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—
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
图像处理
所属包
图像处理