This commit is contained in:
zchen
2025-08-30 10:46:23 +08:00
parent c6acf70374
commit d55f8a1c0a

View File

@@ -112,9 +112,9 @@ class PrintPainting:
else:
start_x = x
if y >= 0: # 如果X轴偏移量大于0说明印花需要被裁剪至合适大小 或当Y轴偏移量大于印花宽度时裁剪后的印花宽度为0
rotate_image = rotate_image[y:, :]
rotate_mask = rotate_mask[y:, :]
if y <= 0: # 如果X轴偏移量大于0说明印花需要被裁剪至合适大小 或当Y轴偏移量大于印花宽度时裁剪后的印花宽度为0
rotate_image = rotate_image[abs(y):, :]
rotate_mask = rotate_mask[abs(y):, :]
start_y = y = 0
else:
start_y = y