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

# PrimitiveBoundingBox - ComfyUI Built-in Node Documentation

> PrimitiveBoundingBox 节点创建一个由其位置和大小定义的简单矩形区域。

PrimitiveBoundingBox 节点创建一个由其位置和大小定义的简单矩形区域。它接收左上角的 X 和 Y 坐标，以及宽度和高度值，并输出一个可供工作流中其他节点使用的边界框数据结构。

## 输入

| 参数   | 描述                  | 数据类型 | 是否必需 | 范围        |
| ---- | ------------------- | ---- | ---- | --------- |
| `x`  | 边界框左上角的 X 坐标（默认：0）。 | INT  | 是    | 0 到 16384 |
| `y`  | 边界框左上角的 Y 坐标（默认：0）。 | INT  | 是    | 0 到 16384 |
| `宽度` | 边界框的宽度（默认：512）。     | INT  | 是    | 1 到 16384 |
| `高度` | 边界框的高度（默认：512）。     | INT  | 是    | 1 到 16384 |

注意：所有最大值均遵循 ComfyUI 的 MAX\_RESOLUTION 常量，该常量定义了节点可接受的最大图像尺寸。

## 输出

| 输出名称           | 描述                                           | 数据类型          |
| -------------- | -------------------------------------------- | ------------- |
| `bounding_box` | 包含所定义矩形的 `x`、`y`、`width` 和 `height` 属性的数据结构。 | BOUNDING\_BOX |

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

***

**Source fingerprint (SHA-256):** `dc50286b09b8aaf7ff21eb699b9a04317f099b3deedb6cb7d4a1ec7668edeb97`
