> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# LatentCompositeMasked - ComfyUI Built-in Node Documentation

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

LatentCompositeMasked 节点用于在指定坐标处将两个潜在表示混合在一起，并可选择使用遮罩进行更可控的合成。该节点通过将一幅图像的部分叠加到另一幅图像上，并能够调整源图像大小以实现完美匹配，从而创建复杂的潜在图像。

## 输入

| 参数         | 描述                                           | 数据类型      |
| ---------- | -------------------------------------------- | --------- |
| `目标Latent` | 作为合成操作基础层的潜在表示，另一个潜在表示将被合成到该表示上。             | `LATENT`  |
| `来源Latent` | 要合成到目标上的潜在表示。该源层可根据指定参数调整大小和位置。              | `LATENT`  |
| `x`        | 源层在目标潜在表示中放置的 x 坐标，可实现源层的精确定位。               | `INT`     |
| `y`        | 源层在目标潜在表示中放置的 y 坐标，可实现精确的叠加定位。               | `INT`     |
| `调整来源大小`   | 一个布尔标志，指示在合成前是否应将源潜在表示调整为与目标尺寸匹配。            | `BOOLEAN` |
| `遮罩`       | 一个可选遮罩，用于控制源层在目标上的混合效果。该遮罩定义了最终合成中源层的哪些部分可见。 | `MASK`    |

## 输出

| 参数       | 描述                                | 数据类型     |
| -------- | --------------------------------- | -------- |
| `latent` | 将源层合成到目标层后得到的潜在表示，可能使用了遮罩进行选择性混合。 | `LATENT` |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/LatentCompositeMasked/zh.md)
