> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Porter-Duff图像合成（PorterDuffImageComposite）

<div class="node-meta"><code>PorterDuffImageComposite</code><span>image/compositing</span><span>角色：图像处理</span></div>

PorterDuffImageComposite 节点旨在使用 Porter-Duff 合成运算符执行图像合成。它允许根据多种混合模式组合源图像和目标图像，通过操控图像透明度并以创意方式叠加图像，实现复杂的视觉效果。

## 参数

| 参数                  | 类型         | 默认 / 范围                      | 说明         |
| ------------------- | ---------- | ---------------------------- | ---------- |
| `source`            | IMAGE · 图像 | —（连线输入）                      | 提供内容的一方。   |
| `source_alpha`      | MASK · 遮罩  | —（连线输入）                      | 提供内容的一方。   |
| `destination`       | IMAGE · 图像 | —（连线输入）                      | 被粘贴/裁剪的底图。 |
| `destination_alpha` | MASK · 遮罩  | —（连线输入）                      | 被粘贴/裁剪的底图。 |
| `mode`              | COMBO      | ADD、CLEAR、DARKEN、DST …共 18 项 | —          |

## 输出

| 输出    | 类型    | 说明 |
| ----- | ----- | -- |
| IMAGE | IMAGE | 图像 |
| MASK  | MASK  | 遮罩 |

## 怎么接

- **上游**：LoadImage / VAEDecode
- **下游**：VAEEncode / SaveImage / 下一个图像节点
- **接线**：接在 LoadImage 或 VAEDecode 之后，处理结果再交给 VAEEncode（重绘）、SaveImage（出图）或下一个图像节点；这类节点可以任意串联成处理流水线。

## 使用案例

属于「图像处理」类节点，向下游提供图像数据。从 `source`、`source_alpha`、`destination` 开始填就能跑起来。典型接法：`LoadImage` → 本节点 → `VAEEncode`。输出类型是 IMAGE，只能接同类型的输入端口，颜色对不上就是接错了。

## 端口与连线示意

![PorterDuffImageComposite 端口与连线示意](/svg/PorterDuffImageComposite.svg)

## 同类节点

[合成图像（遮罩）](/nodes/06/ImageCompositeMasked.md) · [合并图像Alpha](/nodes/06/JoinImageWithAlpha.md) · [分离图像Alpha](/nodes/06/SplitImageWithAlpha.md)
