CR Draw Text
节点功能:用于创建包含文本的图像。与CR Overlay Text不同,CR Draw Text不需要输入图像,而是从头创建一个新图像并在其上绘制文本。?️ CR Draw
节点中英文对比
CR Draw Text
image_width
image_height
text
font_name
font_size
font_color
background_color
align
justify
margins
line_spacing
position_x
position_y
rotation_angle
rotation_options
font_color_hex
bg_color_hex
CR Draw Text
image_width
image_height
text
font_name
font_size
font_color
background_color
align
justify
margins
line_spacing
position_x
position_y
rotation_angle
rotation_options
font_color_hex
bg_color_hex
CR Draw Text - 参数说明
输出参数
IMAGE
输出的文字图像,包含背景与绘制的文字。
show_help
帮助链接,指向节点使用说明文档。
控件参数
image_width
输出图像宽度,单位为像素,范围 64~2048。
image_height
输出图像高度,单位为像素,范围 64~2048。
text
要绘制的文字内容,支持多行输入。
font_name
从插件目录 /fonts 读取的 .ttf 字体列表。
font_size
字体大小,单位为像素,范围 1~1024。推荐在高分辨率画布中使用大号字体确保清晰。
font_color
字体颜色,可从内置颜色值中选择。
background_color
背景颜色,用于生成图像底色。支持纯色背景输出,可配合透明图层后处理使用。
align
水平对齐方式(如左对齐、居中、右对齐)。
justify
垂直对齐方式(如顶部、中部、底部)。
margins
设置文字区域与图像边缘的间距(正值收缩区域,负值扩展)。
line_spacing
行间距设置,正值增加距离,负值压缩行。
position_x
水平位置偏移,单位像素,负值左移,正值右移。
position_y
垂直位置偏移,单位像素,负值上移,正值下移。
rotation_angle
文本旋转角度,范围 -360~360 度。
rotation_options
旋转参考点选项,如绕中心、左上角旋转等。
font_color_hex
当 font_color 为 "custom" 时使用的十六进制颜色代码(如 #FF0000)。
bg_color_hex
当 background_color 为 "custom" 时使用的十六进制颜色代码。
暂无节点说明