元编程参考文档

快速图像处理

49 个节点

本页内容 49

添加背景

函数

Adds a solid-colored background behind any transparent pixels in the image.

签名
添加背景(原图像: Pixel Image, 背景: 可选颜色) -> Pixel Image
PixelImage AddBackgroud(
    PixelImage originalImage,
    ColorElement? background)

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
背景可选颜色—The background fill color. If null, defaults to white.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

添加胶片颗粒

函数

Lays a film grain over the image, as an analog photograph has.

签名
添加胶片颗粒 -> Pixel Image
    原图: Pixel Image
    颗粒类型: Grain Noise
    不透明度: 数字
    种子: 整数
PixelImage AddFilmGrain(
    PixelImage original,
    OneShotProcessing.GrainNoise noiseType = GrainNoise.Gaussian,
    double opacity = 20,
    int seed = -1)

参数

名称类型默认值说明
原图Pixel Image—The source image in Image.PixelImage format.
颗粒类型Grain Noise高斯The kind of grain.
不透明度数字20How visible the grain is, as a percentage from 0 to 100.
种子整数-1The same seed lays the same grain; -1 for a different grain every time.

返回

结果Pixel Image

备注

A grey layer of noise blended over the picture in overlay mode, as ImageMagick's film grain recipe does: the grain lightens light areas and darkens dark ones.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

添加文字

函数

Writes text onto the image.

重载 1/2

签名
添加文字
    原图像: 文本
    输出图像: 文本
    文本: 文本
    位置: Point
    字体: 文本
    字号: 整数
    颜色: 颜色
void AddText(
    string originalImage,
    string outputImage,
    string text,
    Point location,
    string font,
    int fontSize,
    ColorElement color)

参数

名称类型默认值说明
原图像文本—Path to the original image.
输出图像文本—Path for the output image.
文本文本—The text to add; it may run over several lines.
位置Point—Where the first line's baseline starts, in pixels.
字体文本—The font family name to use.
字号整数—The font size, in pixels.
颜色颜色—The color of the text.

重载 2/2

签名
添加文字 -> Pixel Image
    原图像: Pixel Image
    文本: 文本
    位置: Point
    字体: 文本
    字号: 整数
    颜色: 颜色
PixelImage AddText(
    PixelImage originalImage,
    string text,
    Point location,
    string font,
    int fontSize,
    ColorElement color)

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
文本文本—The text to add; it may run over several lines.
位置Point—Where the first line's baseline starts, in pixels.
字体文本—The font family name to use.
字号整数—The font size, in pixels.
颜色颜色—The color of the text.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

调整亮度和对比度

函数

重载 1/2

签名
调整亮度和对比度
    原始路径: 文本
    输出路径: 文本
    亮度调整: 数字
    对比度调整: 数字
void AdjustBrightnessContrast(
    string originalImage,
    string outputImage,
    double brightness,
    double contrast)

调整图像的亮度和对比度。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
亮度调整数字—亮度调整的百分比。 0表示没有变化;正值使亮度变亮,负值使亮度变暗。
对比度调整数字—对比度调整的百分比。 0表示没有变化;正值增加对比度,负值减少对比度。

重载 2/2

签名
调整亮度对比度 -> Pixel Image
    原图像: Pixel Image
    亮度: 数字
    对比度: 数字
PixelImage AdjustBrightnessContrast(
    PixelImage originalImage,
    double brightness,
    double contrast)

Adjusts the brightness and contrast of the image.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
亮度数字—The brightness change in percentage, from -100 to 100 (negative darkens, positive brightens).
对比度数字—The contrast change in percentage, from -100 to 100 (negative decreases, positive increases).

返回

结果Pixel Image

备注

ImageMagick 7's brightness-contrast: a straight line through the tones whose slope is 100/(100 - contrast) (or 1 + contrast/100 when the contrast is lowered), lifted about mid-grey by the brightness.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

调整色彩平衡

函数

重载 1/2

签名
调整色彩平衡
    原始路径: 文本
    输出路径: 文本
    红色偏移: 整数
    绿色偏移: 整数
    蓝色偏移: 整数
void AdjustColorBalance(
    string originalImage,
    string outputImage,
    int redOffset,
    int greenOffset,
    int blueOffset)

调整图像的色彩平衡,通过为红色、绿色和蓝色通道添加偏移。

参数

名称类型默认值说明
原始路径文本—Path to the original image.
输出路径文本—Path for the output image.
红色偏移整数—The offset to add to the red channel (negative or positive, in the Q8 range 0-255).
绿色偏移整数—The offset to add to the green channel.
蓝色偏移整数—The offset to add to the blue channel.

重载 2/2

签名
调整色彩平衡 -> Pixel Image
    原图像: Pixel Image
    红色偏移: 整数
    绿色偏移: 整数
    蓝色偏移: 整数
PixelImage AdjustColorBalance(
    PixelImage originalImage,
    int redOffset,
    int greenOffset,
    int blueOffset)

Adjusts the color balance of the image by adding offsets to the red, green, and blue channels.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
红色偏移整数—Offset to add to the red channel, from -255 to 255.
绿色偏移整数—Offset to add to the green channel.
蓝色偏移整数—Offset to add to the blue channel.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

调整HSL

函数

重载 1/2

签名
调整HSL
    原始路径: 文本
    输出路径: 文本
    色调调整值: 数字
    饱和度水平: 数字
    亮度水平: 数字
void AdjustHSL(
    string originalImage,
    string outputImage,
    double hue,
    double saturation,
    double luminance)

使用HSL(色调、饱和度、亮度)值调整图像。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
色调调整值数字—色调调整值(以度为单位)。
饱和度水平数字—饱和度水平(以百分比表示)。 100表示无变化。
亮度水平数字—亮度水平(以百分比表示)。 100表示无变化。

重载 2/2

签名
调整 HSL -> Pixel Image
    原图像: Pixel Image
    色相: 数字
    饱和度: 数字
    亮度: 数字
PixelImage AdjustHSL(
    PixelImage originalImage,
    double hue,
    double saturation,
    double luminance)

Adjusts hue, saturation and lightness, each as a percentage where 100 leaves it unchanged.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
色相数字—The hue as a percentage: 100 leaves it, 0 and 200 turn every colour half way round the colour wheel.
饱和度数字—The saturation as a percentage: 100 leaves it, 0 makes the image grey.
亮度数字—The lightness as a percentage: 100 leaves it, 0 makes the image black.

返回

结果Pixel Image

备注

ImageMagick's -modulate in its default HSL space.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

调整级别

函数

重载 1/2

签名
调整级别
    原始路径: 文本
    输出路径: 文本
    黑色点: 字节
    白色点: 字节
    伽玛: 数字
void AdjustLevels(
    string originalImage,
    string outputImage,
    byte blackPoint,
    byte whitePoint,
    double gamma)

调整图像的级别。

参数

名称类型默认值说明
原始路径文本—The path to the original image.
输出路径文本—The path for the output image.
黑色点字节—The black point value.
白色点字节—The white point value.
伽玛数字—The gamma correction value.

重载 2/2

签名
调整色阶 -> Pixel Image
    原图像: Pixel Image
    黑场: 字节
    白场: 字节
    伽马: 数字
PixelImage AdjustLevels(
    PixelImage originalImage,
    byte blackPoint,
    byte whitePoint,
    double gamma)

Adjusts levels: the black point becomes black, the white point white, and the gamma bends the tones between.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
黑场字节—The value, from 0 to 255, that becomes black.
白场字节—The value, from 0 to 255, that becomes white.
伽马数字—The gamma between them: 1 is a straight line.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

调整饱和度

函数

重载 1/2

签名
调整饱和度(原始路径: 文本, 输出路径: 文本, 饱和度: 数字)
void AdjustSaturation(
    string originalImage,
    string outputImage,
    double saturation)

调整图像的饱和度。

参数

名称类型默认值说明
原始路径文本—Path to the original image.
输出路径文本—Path for the output image.
饱和度数字—饱和度水平,以百分比表示。 100表示图像不变;高于100的值增加饱和度, 低于100的值减少饱和度。

重载 2/2

签名
调整饱和度(原图像: Pixel Image, 饱和度: 数字) -> Pixel Image
PixelImage AdjustSaturation(
    PixelImage originalImage,
    double saturation)

Adjusts the saturation of the image.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
饱和度数字—The saturation level as a percentage: 100 means no change; values above 100 increase saturation, while values below 100 decrease it.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

调整选定颜色饱和度

函数

Changes the saturation of only the colours near a target colour.

重载 1/2

签名
调整选定颜色饱和度
    原图像: 文本
    输出图像: 文本
    目标颜色: 颜色
    容差: 数字
    饱和度: 数字
void AdjustSelectiveSaturation(
    string originalImage,
    string outputImage,
    ColorElement targetColor,
    double tolerance,
    double saturation)

参数

名称类型默认值说明
原图像文本—The path to the original image.
输出图像文本—The path for the output image.
目标颜色颜色—The colour whose neighbours change.
容差数字—How near a colour must be to change, as a percentage of the largest possible distance between two colours.
饱和度数字—The saturation those colours take, as a percentage: 100 leaves them.

重载 2/2

签名
调整选定颜色饱和度 -> Pixel Image
    原图像: Pixel Image
    目标颜色: 颜色
    容差: 数字
    饱和度: 数字
PixelImage AdjustSelectiveSaturation(
    PixelImage originalImage,
    ColorElement targetColor,
    double tolerance,
    double saturation)

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
目标颜色颜色—The colour whose neighbours change.
容差数字—How near a colour must be to change, as a percentage of the largest possible distance between two colours.
饱和度数字—The saturation those colours take, as a percentage: 100 leaves them.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

调整阴影和高光

函数

重载 1/2

签名
调整阴影和高光
    原始路径: 文本
    输出路径: 文本
    阴影调整量: 数字
    高光调整量: 数字
void AdjustShadowsHighlights(
    string originalImage,
    string outputImage,
    double shadows,
    double highlights)

使用 sigmoid 对比度调整图像的阴影和高光。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
阴影调整量数字—调整阴影的量。 使用正值来增强阴影对比度,使用负值来柔化阴影。
高光调整量数字—调整高光的量。 使用正值来增强高光对比度,使用负值来柔化高光。

重载 2/2

签名
调整阴影高光 -> Pixel Image
    原图像: Pixel Image
    阴影: 数字
    高光: 数字
PixelImage AdjustShadowsHighlights(
    PixelImage originalImage,
    double shadows,
    double highlights)

Opens up the shadows and recovers the highlights with sigmoidal contrast around each.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
阴影数字—How strongly to lift the shadows; 0 leaves them.
高光数字—How strongly to shape the highlights; 0 leaves them.

返回

结果Pixel Image

备注

ImageMagick's sigmoidal contrast, centred on 30% for the shadows and 70% for the highlights.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

按锚点裁剪

函数

重载 1/5

签名
按锚点裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选低精度数字
    目标高度: 可选低精度数字
    锚点: Nine Way Anchor
    填充颜色: 可选颜色
void AnchoredCrop(
    string originalImage,
    string outputImage,
    float? targetWidth,
    float? targetHeight,
    OneShotProcessing.NineWayAnchor anchor,
    ColorElement? fillColor)

Crops an image to the requested size (expressed as a ratio of the original dimensions) by anchoring the original image inside the crop canvas. If either ratio is null, zero, or 1, the original dimension is preserved. Areas outside the original image are filled with Fill Color.

参数

名称类型默认值说明
原图像文本—Path to the source image.
输出图像文本—Path to write the cropped image.
目标宽度可选低精度数字—Ratio of the original width to use for the crop: null, 0 or 1 keeps the original width; any other value multiplies it.
目标高度可选低精度数字—Ratio of the original height to use for the crop: null, 0 or 1 keeps the original height; any other value multiplies it.
锚点Nine Way Anchor—Where to anchor the original image within the crop.
填充颜色可选颜色—Fill color used where the original doesn't cover the crop. Defaults to white.

重载 2/5

签名
按锚点裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    锚点: Nine Way Anchor
    填充颜色: 可选颜色
void AnchoredCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    OneShotProcessing.NineWayAnchor anchor,
    ColorElement? fillColor)

Crops an image to the requested size by anchoring the original image inside the crop canvas. If either target dimension is null or zero, the original dimension is preserved. Areas outside the original image are filled with Fill Color.

参数

名称类型默认值说明
原图像文本—Path to the source image.
输出图像文本—Path to write the cropped image.
目标宽度可选正整数—Target crop width, or null/0 to use the original width.
目标高度可选正整数—Target crop height, or null/0 to use the original height.
锚点Nine Way Anchor—Where to anchor the original image within the crop.
填充颜色可选颜色—Fill color used where the original doesn't cover the crop.

重载 3/5

签名
按锚点裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    锚点: Nine Way Anchor
    填充颜色: 可选颜色
PixelImage AnchoredCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    OneShotProcessing.NineWayAnchor anchor,
    ColorElement? fillColor)

Crops an image to the requested size by anchoring the original image inside the crop canvas. If either target dimension is null or zero, the original dimension is preserved. Areas outside the original image are filled with Fill Color.

参数

名称类型默认值说明
原图像Pixel Image—Source Image.PixelImage.
目标宽度可选正整数—Target crop width, or null/0 to use the original width.
目标高度可选正整数—Target crop height, or null/0 to use the original height.
锚点Nine Way Anchor—Where to anchor the original image within the crop.
填充颜色可选颜色—Fill color used where the original doesn't cover the crop.

返回

结果Pixel Image

重载 4/5

签名
按锚点裁剪
    原图像: 文本
    输出图像: 文本
    目标大小: Size
    锚点: Nine Way Anchor
    填充颜色: 可选颜色
void AnchoredCrop(
    string originalImage,
    string outputImage,
    Size targetSize,
    OneShotProcessing.NineWayAnchor anchor,
    ColorElement? fillColor)

Overload that accepts a Drawing.Size where zero means "use original".

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标大小Size—
锚点Nine Way Anchor—
填充颜色可选颜色—

重载 5/5

签名
按锚点裁剪 -> Pixel Image
    原图像: Pixel Image
    目标大小: Size
    锚点: Nine Way Anchor
    填充颜色: 可选颜色
PixelImage AnchoredCrop(
    PixelImage originalImage,
    Size targetSize,
    OneShotProcessing.NineWayAnchor anchor,
    ColorElement? fillColor)

Overload that accepts a Drawing.Size where zero means "use original".

参数

名称类型默认值说明
原图像Pixel Image—
目标大小Size—
锚点Nine Way Anchor—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

应用浮雕效果

函数

重载 1/2

签名
应用浮雕效果
    原始路径: 文本
    输出路径: 文本
    浮雕半径: 数字
    浮雕sigma: 数字
void ApplyEmboss(
    string originalImage,
    string outputImage,
    double radius,
    double sigma)

对图像应用浮雕效果。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
浮雕半径数字—浮雕效果的半径。
浮雕sigma数字—浮雕效果的sigma值。

重载 2/2

签名
应用浮雕 -> Pixel Image
    原图像: Pixel Image
    半径: 数字
    标准差: 数字
PixelImage ApplyEmboss(
    PixelImage originalImage,
    double radius,
    double sigma)

Embosses the image, as if pressed into metal and lit from one side.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
半径数字—The reach of the relief, in pixels; 0 lets the sigma decide.
标准差数字—How smooth the relief is.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

应用LUT

函数

重载 1/2

签名
应用LUT(原始路径: 文本, LUT图像路径: 文本, 输出路径: 文本)
void ApplyLUT(
    string originalImage,
    string lutImage,
    string outputImage)

将查找表(LUT)应用于图像。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
LUT图像路径文本—LUT图像的路径。
输出路径文本—输出图像的路径。

重载 2/2

签名
应用查找表 -> Pixel Image
    原图像: Pixel Image
    查找表图像: Pixel Image
PixelImage ApplyLUT(
    PixelImage originalImage,
    PixelImage lutImage)

Recolours the image through a colour lookup table: each channel's value is looked up along the table picture, from its first pixel for black to its last for white.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
查找表图像Pixel Image—The table: a strip (any length, one pixel or more thick) or a square read along its diagonal.

返回

结果Pixel Image

备注

ImageMagick's -clut: red is looked up in the table's red, green in its green and blue in its blue, the table sampled along its diagonal with linear interpolation.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

应用油画效果

函数

重载 1/2

签名
应用油画效果
    原始路径: 文本
    输出路径: 文本
    半径: 整数
    层次: 整数
void ApplyOilPaintEffect(
    string originalImage,
    string outputImage,
    int radius,
    int levels = 15)

将油画效果应用于图像。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
半径整数—油画效果的半径。
层次整数15笔触归并颜色时使用的亮度层次数:越少,笔触越平、越粗犷。

重载 2/2

签名
应用油画效果 -> Pixel Image
    原图像: Pixel Image
    半径: 整数
    层次: 整数
PixelImage ApplyOilPaintEffect(
    PixelImage originalImage,
    int radius,
    int levels = 15)

Repaints the image as an oil painting: each pixel takes the most common colour around it.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
半径整数—The size of the brush, in pixels.
层次整数15How many intensity levels the brush sorts colours into: fewer gives flatter, bolder strokes.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

应用透视失真

函数

重载 1/2

签名
应用透视失真(原始路径: 文本, 输出路径: 文本, 控制点: 数字数组)
void ApplyPerspectiveDistortion(
    string originalImage,
    string outputImage,
    double[] controlPoints)

应用透视失真到图像,使用控制点。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
控制点数字数组—一个双精度数组,表示源坐标和目标坐标对。 数组必须包含正好 16 个元素,顺序如下: srcX1, srcY1, dstX1, dstY1, srcX2, srcY2, dstX2, dstY2, srcX3, srcY3, dstX3, dstY3, srcX4, srcY4, dstX4, dstY4。

重载 2/2

签名
应用透视扭曲 -> Pixel Image
    原图像: Pixel Image
    控制点: 数字数组
PixelImage ApplyPerspectiveDistortion(
    PixelImage originalImage,
    double[] controlPoints)

Distorts the image in perspective, so four points of it land where you say.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
控制点数字数组—Four pairs of points, sixteen numbers: each a point of the image followed by where it should land - x1, y1, x1', y1', ... x4, y4, x4', y4'.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

应用渐晕

函数

重载 1/2

签名
应用渐晕
    原始路径: 文本
    输出路径: 文本
    渐晕半径: 数字
    渐晕sigma: 数字
    x椭圆偏移: 整数
    y椭圆偏移: 整数
void ApplyVignette(
    string originalImage,
    string outputImage,
    double radius,
    double sigma,
    int x,
    int y)

对图像应用渐晕效果。

参数

名称类型默认值说明
原始路径文本—图像的原始路径。
输出路径文本—输出图像的路径。
渐晕半径数字—渐晕效果的半径。
渐晕sigma数字—渐晕效果的sigma值。
x椭圆偏移整数—x椭圆的偏移。
y椭圆偏移整数—y椭圆的偏移。

重载 2/2

签名
应用暗角 -> Pixel Image
    原图像: Pixel Image
    半径: 数字
    标准差: 数字
    X: 整数
    Y: 整数
PixelImage ApplyVignette(
    PixelImage originalImage,
    double radius,
    double sigma,
    int x,
    int y)

Darkens the image toward its edges, around an oval inset from the borders.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
半径数字—The radius of the blur that softens the oval's edge; 0 lets the sigma decide.
标准差数字—How soft the edge is, in pixels.
X整数—How far the oval is inset from the left and right borders, in pixels.
Y整数—How far the oval is inset from the top and bottom borders, in pixels.

返回

结果Pixel Image

备注

ImageMagick's vignette: a white oval on black, blurred by the sigma, multiplies the picture.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

漂白旁路

函数

Creates a Bleach Bypass effect by partially desaturating the image and boosting contrast.

重载 1/2

签名
漂白旁路
    原路径: 文本
    输出路径: 文本
    去饱和百分比: 数字
    对比度增强: 数字
void BleachBypass(
    string originalPath,
    string outputPath,
    double desatPercentage = 50,
    double contrastBoost = 10)

参数

名称类型默认值说明
原路径文本—Path to the original image file.
输出路径文本—Path where the stylized image will be saved.
去饱和百分比数字50How much to desaturate the image (0 = no desaturation, 100 = fully grayscale).
对比度增强数字10Additional contrast to apply afterward (0 = no change).

重载 2/2

签名
漂白旁路 -> Pixel Image
    原图像: Pixel Image
    去饱和百分比: 数字
    对比度增强: 数字
PixelImage BleachBypass(
    PixelImage originalImage,
    double desatPercentage = 50,
    double contrastBoost = 10)

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
去饱和百分比数字50How much to desaturate the image (0 = no desaturation, 100 = fully grayscale).
对比度增强数字10Additional contrast to apply afterward (0 = no change).

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

底部居中裁剪

函数

此节点没有文档说明。

重载 1/2

签名
底部居中裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void BottomCenterCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
底部居中裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage BottomCenterCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

左下裁剪

函数

此节点没有文档说明。

重载 1/2

签名
左下裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void BottomLeftCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
左下裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage BottomLeftCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

右下裁剪

函数

此节点没有文档说明。

重载 1/2

签名
右下裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void BottomRightCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
右下裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage BottomRightCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

居中裁剪

函数

此节点没有文档说明。

重载 1/2

签名
居中裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void CenterCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
居中裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage CenterCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

左侧居中裁剪

函数

此节点没有文档说明。

重载 1/2

签名
左侧居中裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void CenterLeftCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
左侧居中裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage CenterLeftCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

右侧居中裁剪

函数

此节点没有文档说明。

重载 1/2

签名
右侧居中裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void CenterRightCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
右侧居中裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage CenterRightCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

通道着色

函数

Multiplies the red, green and blue channels by their own factors.

签名
通道着色 -> Pixel Image
    原图: Pixel Image
    红色系数: 数字
    绿色系数: 数字
    蓝色系数: 数字
PixelImage ChannelTint(
    PixelImage original,
    double redFactor,
    double greenFactor,
    double blueFactor)

参数

名称类型默认值说明
原图Pixel Image—The source image in Image.PixelImage format.
红色系数数字—The multiplier for the red channel.
绿色系数数字—The multiplier for the green channel.
蓝色系数数字—The multiplier for the blue channel.

返回

结果Pixel Image

备注

Warm an image with a red factor a little above 1 (1.1), cool it by raising blue (1.2). Values past 255 clip.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

合成图像

函数

重载 1/2

签名
合成图像
    基础图像路径: 文本
    覆盖图像路径: 文本
    输出路径: 文本
    偏移量: Point
    混合模式: BlendMode
void CompositeImages(
    string baseImagePath,
    string overlayImagePath,
    string outputImage,
    Point offset,
    BlendMode blendMode)

将覆盖图像与基础图像合成,使用指定的合成操作符和偏移量。

参数

名称类型默认值说明
基础图像路径文本—基础图像的路径。
覆盖图像路径文本—覆盖图像的路径。
输出路径文本—输出图像的路径。
偏移量Point—覆盖应用的偏移(以像素为单位)。
混合模式BlendMode—用于组合图像的合成操作符。

重载 2/2

签名
合成图像 -> Pixel Image
    基础图像: Pixel Image
    叠加图像: Pixel Image
    偏移: Point
    混合模式: BlendMode
PixelImage CompositeImages(
    PixelImage baseImage,
    PixelImage overlayImage,
    Point offset,
    BlendMode blendMode = BlendMode.SrcOver)

Places one image over another, centred and then moved by an offset, combined by a blend mode.

参数

名称类型默认值说明
基础图像Pixel Image—The base image as a Image.PixelImage.
叠加图像Pixel Image—The overlay image as a Image.PixelImage.
偏移Point—How far from centred the overlay sits, in pixels.
混合模式BlendMode源在上How the overlay combines with the base: SrcOver lays it over, Multiply, Screen, Overlay and the rest blend as their names say.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

转换为灰度

函数

重载 1/2

签名
转换为灰度(原始路径: 文本, 输出路径: 文本)
void ConvertToGrayscale(
    string originalImage,
    string outputImage)

将图像转换为灰度。

参数

名称类型默认值说明
原始路径文本—Path to the original image.
输出路径文本—Path for the output image.

重载 2/2

签名
转为灰度(原图像: Pixel Image) -> Pixel Image
PixelImage ConvertToGrayscale(PixelImage originalImage)

Converts the image to shades of grey, by the luminance of each pixel (Rec. 709 weights).

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

转为 ICO

函数

重载 1/2

签名
转为 ICO(PNG 路径: 文本, ICO 路径: 文本, 多种分辨率: 真否)
void ConvertToIco(
    string pngPath,
    string icoPath,
    bool multipleResolution)

Converts the given image file to an ICO file.

参数

名称类型默认值说明
PNG 路径文本—The source image.
ICO 路径文本—The path for the output .ico file.
多种分辨率真否—If true, writes every standard size from 256 to 16 pixels in one icon; otherwise a single size.

重载 2/2

签名
转为 ICO(图像: Pixel Image, ICO 路径: 文本, 多种分辨率: 真否)
void ConvertToIco(
    PixelImage image,
    string icoPath,
    bool multipleResolution)

Converts the given Image.PixelImage to an ICO file.

参数

名称类型默认值说明
图像Pixel Image—The source Image.PixelImage.
ICO 路径文本—The path for the output .ico file.
多种分辨率真否—If true, writes every standard size from 256 to 16 pixels in one icon; otherwise a single size.
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

裁剪图像

函数

重载 1/4

签名
裁剪图像
    原图像: 文本
    输出图像: 文本
    X 偏移: 正整数
    Y 偏移: 正整数
    裁剪宽度: 正整数
    裁剪高度: 正整数
    填充颜色: 可选颜色
void CropImage(
    string originalImage,
    string outputImage,
    uint offsetX,
    uint offsetY,
    uint cropWidth,
    uint cropHeight,
    ColorElement? fillColor)

Crops the image to the specified rectangle. If the crop area exceeds the bounds of the original image, the missing regions are filled with the specified fill color.

参数

名称类型默认值说明
原图像文本—The path to the original image file.
输出图像文本—The path to the output image file.
X 偏移正整数—The X offset (in pixels) where cropping should begin.
Y 偏移正整数—The Y offset (in pixels) where cropping should begin.
裁剪宽度正整数—The width (in pixels) of the crop area.
裁剪高度正整数—The height (in pixels) of the crop area.
填充颜色可选颜色—The fill color to use for areas outside the bounds of the original image. Defaults to white if not provided.

重载 2/4

签名
裁剪图像 -> Pixel Image
    原图像: Pixel Image
    X 偏移: 正整数
    Y 偏移: 正整数
    裁剪宽度: 正整数
    裁剪高度: 正整数
    填充颜色: 可选颜色
PixelImage CropImage(
    PixelImage originalImage,
    uint offsetX,
    uint offsetY,
    uint cropWidth,
    uint cropHeight,
    ColorElement? fillColor)

Crops the image to the specified rectangle. If the crop area exceeds the original bounds, the missing regions are filled with the specified color.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
X 偏移正整数—The X offset from the top-left corner.
Y 偏移正整数—The Y offset from the top-left corner.
裁剪宽度正整数—The width of the crop area.
裁剪高度正整数—The height of the crop area.
填充颜色可选颜色—The fill color to use outside original bounds (defaults to white).

返回

结果Pixel Image

重载 3/4

签名
裁剪图像
    原图像: 文本
    输出图像: 文本
    偏移: Vector2
    裁剪大小: Size
    填充颜色: 可选颜色
void CropImage(
    string originalImage,
    string outputImage,
    Vector2 offset,
    Size cropSize,
    ColorElement? fillColor)

Crops the image to the specified rectangle defined by an offset vector and size.

参数

名称类型默认值说明
原图像文本—The path to the original image file.
输出图像文本—The path to the output image file.
偏移Vector2—The offset (in pixels) where cropping should begin.
裁剪大小Size—The size (in pixels) of the crop area.
填充颜色可选颜色—The fill color to use for areas outside the original image bounds.

重载 4/4

签名
裁剪图像 -> Pixel Image
    原图像: Pixel Image
    偏移: Vector2
    裁剪大小: Size
    填充颜色: 可选颜色
PixelImage CropImage(
    PixelImage originalImage,
    Vector2 offset,
    Size cropSize,
    ColorElement? fillColor)

Crops the image to the specified rectangle using an offset vector and size.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
偏移Vector2—The offset (in pixels) from the top-left corner.
裁剪大小Size—The width and height of the crop.
填充颜色可选颜色—The fill color for areas outside the original image bounds.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

水平翻转图像

函数

重载 1/2

签名
水平翻转图像(原始路径: 文本, 输出路径: 文本)
void FlipImageHorizontally(
    string originalImage,
    string outputImage)

翻转图像,使其水平对称(从左到右镜像)。

参数

名称类型默认值说明
原始路径文本—The path to the original image file.
输出路径文本—The path where the transformed image will be saved.

重载 2/2

签名
水平翻转图像(原图像: Pixel Image) -> Pixel Image
PixelImage FlipImageHorizontally(PixelImage originalImage)

Flips the image horizontally (mirrors it left-to-right).

参数

名称类型默认值说明
原图像Pixel Image—The original image data.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

翻转图像垂直

函数

重载 1/2

签名
翻转图像垂直(原始路径: 文本, 输出路径: 文本)
void FlipImageVertically(
    string originalImage,
    string outputImage)

垂直翻转图像(自上而下地镜像)。

参数

名称类型默认值说明
原始路径文本—原始图像文件的路径。
输出路径文本—转换后图像将保存的路径。

重载 2/2

签名
垂直翻转图像(原图像: Pixel Image) -> Pixel Image
PixelImage FlipImageVertically(PixelImage originalImage)

Flips the image vertically (mirrors it top-to-bottom).

参数

名称类型默认值说明
原图像Pixel Image—The source image in Image.PixelImage format.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

伽马校正

函数

重载 1/2

签名
伽马校正(原始路径: 文本, 输出路径: 文本, 伽马值: 数字)
void GammaCorrection(
    string originalImage,
    string outputImage,
    double gamma)

对图像应用伽马校正。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
伽马值数字—要应用的伽马值(通常在0.1到3.0之间)。

重载 2/2

签名
伽马校正(原图像: Pixel Image, 伽马: 数字) -> Pixel Image
PixelImage GammaCorrection(
    PixelImage originalImage,
    double gamma)

Applies a gamma correction: values above 1 brighten the midtones, below 1 darken them.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
伽马数字—The gamma: 1 leaves the image.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

高斯模糊

函数

重载 1/2

签名
高斯模糊
    原始路径: 文本
    输出路径: 文本
    模糊半径: 数字
    标准差: 数字
void GaussianBlur(
    string originalImage,
    string outputImage,
    double radius,
    double sigma)

对图像应用高斯模糊。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
模糊半径数字—模糊半径。
标准差数字—模糊的标准差(sigma)。

重载 2/2

签名
高斯模糊 -> Pixel Image
    原图像: Pixel Image
    半径: 数字
    标准差: 数字
PixelImage GaussianBlur(
    PixelImage originalImage,
    double radius,
    double sigma)

Applies a Gaussian blur to the image.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
半径数字—The radius of the blur, in pixels; 0 lets the sigma decide.
标准差数字—The standard deviation of the Gaussian, in pixels: how strong the blur is.

返回

结果Pixel Image

备注

The sigma decides the blur, as it does in ImageMagick, whose radius only bounds the kernel; this runs Methodox Image Editor's recursive Gaussian, which costs the same at any sigma.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

高对比度黑白

函数

Applies a high-contrast black-and-white effect.

重载 1/2

签名
高对比度黑白(原路径: 文本, 输出路径: 文本, 对比度增强: 数字)
void HighContrastBAndW(
    string originalPath,
    string outputPath,
    double contrastBoost = 30)

参数

名称类型默认值说明
原路径文本—Path to the original image file.
输出路径文本—Path where the stylized image will be saved.
对比度增强数字30The contrast boost percentage (0 means no change; typical range is 10–50).

重载 2/2

签名
高对比度黑白 -> Pixel Image
    原图像: Pixel Image
    对比度增强: 数字
PixelImage HighContrastBAndW(
    PixelImage originalImage,
    double contrastBoost = 30)

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
对比度增强数字30The contrast boost percentage (0 means no change; typical range is 10-50 for noticeable effect).

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

反转颜色

函数

重载 1/2

签名
反转颜色(原始路径: 文本, 输出路径: 文本)
void InvertColors(string originalImage, string outputImage)

反转图像的颜色。

参数

名称类型默认值说明
原始路径文本—Path to the original image.
输出路径文本—Path for the output image.

重载 2/2

签名
反相颜色(原图像: Pixel Image) -> Pixel Image
PixelImage InvertColors(PixelImage originalImage)

Inverts the colors of the image.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

运动模糊处理

函数

重载 1/2

签名
运动模糊处理
    原始路径: 文本
    输出路径: 文本
    模糊半径: 数字
    标准差: 数字
    运动模糊角度: 数字
void MotionBlur(
    string originalImage,
    string outputImage,
    double radius,
    double sigma,
    double angle)

将运动模糊应用于图像。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
模糊半径数字—模糊半径。
标准差数字—模糊的标准差(sigma)。
运动模糊角度数字—运动模糊的角度(以度为单位)。

重载 2/2

签名
运动模糊 -> Pixel Image
    原图像: Pixel Image
    半径: 数字
    标准差: 数字
    角度: 数字
PixelImage MotionBlur(
    PixelImage originalImage,
    double radius,
    double sigma,
    double angle)

Applies a motion blur, as if the camera moved along a line during the exposure.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
半径数字—How far the motion reaches, in pixels; 0 lets the sigma decide.
标准差数字—How strongly the streak fades along its length.
角度数字—The direction of the motion, in degrees.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

像素化

函数

重载 1/2

签名
像素化(原图像: Pixel Image, 大小: 整数) -> Pixel Image
PixelImage Pixelate(PixelImage originalImage, int size = 4)

Gives the image a retro, pixel-art look by grouping pixels into blocks of Size² and painting each block with its average colour. The final bitmap keeps the original resolution.

参数

名称类型默认值说明
原图像Pixel Image—Source image data.
大小整数4The block width/height in pixels (minimum = 1). Larger values → chunkier pixels. Default = 4.

返回

结果Pixel Image

重载 2/2

签名
像素化(原图像: 文本, 输出图像: 文本, 大小: 整数)
void Pixelate(
    string originalImage,
    string outputImage,
    int size = 4)

Gives the image a retro, pixel-art look: blocks of Size pixels, each its average colour.

参数

名称类型默认值说明
原图像文本—The path to the original image.
输出图像文本—The path for the output image.
大小整数4The block width/height in pixels (minimum = 1).
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

圆形像素化

函数

Pixel-art effect that replaces every Size×Size block with a filled circle, giving a dotted-mosaic look.

签名
圆形像素化 -> Pixel Image
    原图像: Pixel Image
    大小: 整数
    背景: 可选颜色
    边距: 整数
PixelImage PixelateCircle(
    PixelImage originalImage,
    int size = 4,
    ColorElement? background,
    int margin = 0)

参数

名称类型默认值说明
原图像Pixel Image—Source bitmap.
大小整数4Side length of each logical block (≥ 1).
背景可选颜色—Canvas colour – everything outside the dots. Null ➜ transparent.
边距整数0Padding between the circle and the edge of its block. 0 means the circle just touches its neighbours; Margin × 2 must be < Size.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

重新着色

函数

Tints the image toward a colour.

重载 1/2

签名
重新着色
    原图像: 文本
    输出图像: 文本
    叠加颜色: 颜色
    不透明度: 数字
void RecolorImage(
    string originalImage,
    string outputImage,
    ColorElement overlayColor,
    double opacity)

参数

名称类型默认值说明
原图像文本—The path to the original image.
输出图像文本—The path for the output image.
叠加颜色颜色—The colour to tint toward.
不透明度数字—How far toward it, as a percentage: 0 leaves the image, 100 paints it the colour.

重载 2/2

签名
重新着色 -> Pixel Image
    原图像: Pixel Image
    叠加颜色: 颜色
    不透明度: 数字
PixelImage RecolorImage(
    PixelImage originalImage,
    ColorElement overlayColor,
    double opacity)

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
叠加颜色颜色—The colour to tint toward.
不透明度数字—How far toward it, as a percentage: 0 leaves the image, 100 paints it the colour.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

降噪

函数

重载 1/2

签名
降噪(原始路径: 文本, 输出路径: 文本, 噪声减少尺寸: 正整数)
void ReduceNoise(
    string originalImage,
    string outputImage,
    uint order)

减少图像中的噪声。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
噪声减少尺寸正整数—用于噪声减少的尺寸。

重载 2/2

签名
降噪(原图像: Pixel Image, 阶数: 正整数) -> Pixel Image
PixelImage ReduceNoise(PixelImage originalImage, uint order)

Reduces noise with a median filter, which removes specks while keeping edges.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
阶数正整数—The radius of the neighbourhood each pixel takes the median of, in pixels.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

顺时针旋转图像90度

函数

重载 1/2

签名
顺时针旋转图像90度(原始路径: 文本, 输出路径: 文本)
void RotateImageClockwise90Degrees(
    string originalImage,
    string outputImage)

将图像顺时针旋转90度。

参数

名称类型默认值说明
原始路径文本—原始图像文件的路径。
输出路径文本—变换后的图像将保存到的路径。

重载 2/2

签名
顺时针旋转图像 90 度(原图像: Pixel Image) -> Pixel Image
PixelImage RotateImageClockwise90Degrees(PixelImage originalImage)

Rotates the image 90 degrees clockwise.

参数

名称类型默认值说明
原图像Pixel Image—The source image in Image.PixelImage format.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

旋转图像逆时针90度

函数

重载 1/2

签名
旋转图像逆时针90度(原始路径: 文本, 输出路径: 文本)
void RotateImageCounterclockwise90Degrees(
    string originalImage,
    string outputImage)

逆时针旋转图像90度。

参数

名称类型默认值说明
原始路径文本—原始图像文件的路径。
输出路径文本—转换后图像将被保存的路径。

重载 2/2

签名
逆时针旋转图像 90 度(原图像: Pixel Image) -> Pixel Image
PixelImage RotateImageCounterclockwise90Degrees(PixelImage originalImage)

Rotates the image 90 degrees counterclockwise.

参数

名称类型默认值说明
原图像Pixel Image—The source image in Image.PixelImage format.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

选择性颜色偏移

函数

Turns the hue of only the colours near a target colour.

签名
选择性颜色偏移 -> Pixel Image
    原图: Pixel Image
    目标颜色: 颜色
    色相偏移(度): 数字
    容差: 数字
PixelImage SelectiveColorShift(
    PixelImage original,
    ColorElement targetColor,
    double hueShiftDegrees,
    double fuzz)

参数

名称类型默认值说明
原图Pixel Image—The source image in Image.PixelImage format.
目标颜色颜色—The colour whose neighbours change.
色相偏移(度)数字—How far to turn their hue round the colour wheel, in degrees; 180 gives the opposite colour.
容差数字—How near a colour must be to change, as a percentage of the largest possible distance between two colours.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

复古褐色调

函数

Tones the image in sepia, as an old photograph.

重载 1/2

签名
复古褐色调(原路径: 文本, 输出路径: 文本, 阈值: 数字)
void SepiaTone(
    string originalPath,
    string outputPath,
    double threshold = 80)

参数

名称类型默认值说明
原路径文本—Path to the original image file.
输出路径文本—Path where the sepia-toned image will be saved.
阈值数字80How strong the sepia is, from 0 to 100: 80 is a classic sepia.

重载 2/2

签名
复古褐色调(原图像: Pixel Image, 阈值: 数字) -> Pixel Image
PixelImage SepiaTone(
    PixelImage originalImage,
    double threshold = 80)

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
阈值数字80How strong the sepia is, from 0 to 100: 80 is a classic sepia.

返回

结果Pixel Image

备注

ImageMagick's sepia-tone ramps - each channel a ramp of the pixel's intensity offset by the threshold, red the most and blue the least - without the normalize and contrast stretch ImageMagick runs over the result, which turns it a saturated orange; this keeps the classic brown of an old photograph.

所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

锐化

函数

重载 1/2

签名
锐化(原始路径: 文本, 输出路径: 文本, 半径: 数字, 标准差: 数字)
void Sharpen(
    string originalImage,
    string outputImage,
    double radius,
    double sigma)

锐化图像。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
半径数字—锐化效果的半径。
标准差数字—锐化效果的sigma。

重载 2/2

签名
锐化 -> Pixel Image
    原图像: Pixel Image
    半径: 数字
    标准差: 数字
PixelImage Sharpen(
    PixelImage originalImage,
    double radius,
    double sigma)

Sharpens the image.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
半径数字—The radius of the sharpening, in pixels; 0 lets the sigma decide.
标准差数字—The standard deviation of the Gaussian the detail is measured against.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

柔焦

函数

Applies a soft-focus effect: the centre stays sharp and the image blurs toward its edges.

签名
柔焦 -> Pixel Image
    原图: Pixel Image
    模糊半径: 数字
    模糊标准差: 数字
PixelImage SoftFocus(
    PixelImage original,
    double blurRadius,
    double blurSigma)

参数

名称类型默认值说明
原图Pixel Image—The source image in Image.PixelImage format.
模糊半径数字—The radius of the Gaussian blur; 0 lets the sigma decide.
模糊标准差数字—The sigma (standard deviation) of the Gaussian blur.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

顶部居中裁剪

函数

此节点没有文档说明。

重载 1/2

签名
顶部居中裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void TopCenterCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
顶部居中裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage TopCenterCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

左上裁剪

函数

此节点没有文档说明。

重载 1/2

签名
左上裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void TopLeftCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
左上裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage TopLeftCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

右上裁剪

函数

此节点没有文档说明。

重载 1/2

签名
右上裁剪
    原图像: 文本
    输出图像: 文本
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
void TopRightCrop(
    string originalImage,
    string outputImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像文本—
输出图像文本—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

重载 2/2

签名
右上裁剪 -> Pixel Image
    原图像: Pixel Image
    目标宽度: 可选正整数
    目标高度: 可选正整数
    填充颜色: 可选颜色
PixelImage TopRightCrop(
    PixelImage originalImage,
    uint? targetWidth,
    uint? targetHeight,
    ColorElement? fillColor)

参数

名称类型默认值说明
原图像Pixel Image—
目标宽度可选正整数—
目标高度可选正整数—
填充颜色可选颜色—

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理

不锐化掩模

函数

重载 1/2

签名
不锐化掩模
    原始路径: 文本
    输出路径: 文本
    半径: 数字
    标准差: 数字
    锐化量: 数字
    阈值: 数字
void UnsharpMask(
    string originalImage,
    string outputImage,
    double radius,
    double sigma,
    double amount,
    double threshold)

应用不锐化掩模到图像。

参数

名称类型默认值说明
原始路径文本—原始图像的路径。
输出路径文本—输出图像的路径。
半径数字—不锐化掩模的半径。
标准差数字—不锐化掩模的sigma。
锐化量数字—锐化的数量。
阈值数字—不锐化掩模的阈值。

重载 2/2

签名
USM 锐化 -> Pixel Image
    原图像: Pixel Image
    半径: 数字
    标准差: 数字
    量: 数字
    阈值: 数字
PixelImage UnsharpMask(
    PixelImage originalImage,
    double radius,
    double sigma,
    double amount,
    double threshold)

Sharpens the image with an unsharp mask: the difference from a blurred copy, scaled and added back.

参数

名称类型默认值说明
原图像Pixel Image—The source Image.PixelImage.
半径数字—The radius of the blur, in pixels; 0 lets the sigma decide.
标准差数字—The standard deviation of the blur.
量数字—How much of the difference is added back: 1 doubles the detail.
阈值数字—The smallest difference, as a fraction from 0 to 1, that is sharpened at all.

返回

结果Pixel Image
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
快速图像处理
所属包
图像处理