> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PorterDuffImageComposite - ComfyUI Built-in Node Documentation

> Complete documentation for the PorterDuffImageComposite node in ComfyUI. Learn its inputs, outputs, parameters and usage.

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

## 输入

| 参数名称             | 数据类型           | 作用                                                         |
| ---------------- | -------------- | ---------------------------------------------------------- |
| `来源图像`           | `IMAGE`        | 要合成到目标图像上的源图像张量。它在根据所选合成模式确定最终视觉效果中起着关键作用。                 |
| `来源图像alpha`      | `MASK`         | 源图像的 alpha 通道，指定源图像中每个像素的透明度。它影响源图像与目标图像的混合方式。             |
| `目标图像`           | `IMAGE`        | 作为背景的目标图像张量，其上合成源图像。它根据混合模式对最终合成图像有所贡献。                    |
| `目标图像alpha`      | `MASK`         | 目标图像的 alpha 通道，定义目标图像像素的透明度。它影响源图像和目标图像的混合。                |
| `模式`             | COMBO\[STRING] | 要应用的 Porter-Duff 合成模式，它决定了源图像和目标图像如何混合在一起。每种模式都会产生不同的视觉效果。 |
| `PorterDuffMode` | `STRING`       | Python 中 Porter-Duff 合成模式的数据类型。                            |

## 输出

| 参数名称    | 数据类型    | 作用                         |
| ------- | ------- | -------------------------- |
| `image` | `IMAGE` | 根据指定的 Porter-Duff 模式合成的图像。 |
| `mask`  | `MASK`  | 合成图像的 alpha 通道，指示每个像素的透明度。 |
