Draw Text

节点中英文对比
Draw Text
  • img_composite
  • IMAGE
  • 遮罩
  • text
    font
    size
    color
    background_color
    shadow_distance
    shadow_blur
    shadow_color
    horizontal_align
    vertical_align
    offset_x
    offset_y
    direction
    Draw Text
  • img_composite
  • IMAGE
  • MASK
  • text
    font
    size
    color
    background_color
    shadow_distance
    shadow_blur
    shadow_color
    horizontal_align
    vertical_align
    offset_x
    offset_y
    direction
    Draw Text - 参数说明
    输入参数
    img_composite
    可选参数,若提供该图像,则文字将叠加绘制在该图像上;否则在透明背景上绘制。
    输出参数
    IMAGE
    输出绘制完文字的图像
    MASK
    文字区域的遮罩图(白色部分为文字,黑色为背景)。
    控件参数
    text
    输入要绘制的文字 默认值:"Hello, World!"
    font
    用户可选字体。 从custom_nodes\ComfyUI_essentials\fonts文件夹下选择.ttf 或 .otf文件
    size
    文字大小 默认值:56 范围:1 ~ 9999
    color
    文字颜色(HEX 格式) 默认值:#FFFFFF
    background_color
    文字绘制区域背景颜色。 默认值:#00000000(全透明背景)。
    shadow_distance
    文字阴影偏移距离。 默认值:0
    shadow_blur
    文字阴影模糊程度。 默认值:0
    shadow_color
    阴影颜色。 默认值:#000000
    horizontal_align
    水平对齐方式。 ["left", "center", "right"]
    vertical_align
    垂直对齐方式。 ["top", "center", "bottom"]
    offset_x
    x轴偏移量
    offset_y
    y轴偏移量
    direction
    文字方向 "ltr":从左向右 "rtl":从右向左
    暂无节点说明
    节点列表 首页