feat : design 示例说明
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
This commit is contained in:
@@ -161,7 +161,7 @@ class NoSegPrintPainting:
|
||||
painting_dict['location'] = print_['location']
|
||||
dim_max = max(painting_dict['dim_image_h'], painting_dict['dim_image_w'])
|
||||
dim_pattern = (int(dim_max * print_['scale'] / 5), int(dim_max * print_['scale'] / 5))
|
||||
gap = print_dict.get('gap', [0, 0])[0]
|
||||
gap = print_dict.get('gap', [[0, 0]])[0]
|
||||
painting_dict['tile_print'] = tile_image(pattern=print_['image'],
|
||||
dim=dim_pattern,
|
||||
gap_x=gap[0],
|
||||
|
||||
@@ -224,7 +224,7 @@ class PrintPainting:
|
||||
painting_dict['location'] = print_['location']
|
||||
dim_max = max(painting_dict['dim_image_h'], painting_dict['dim_image_w'])
|
||||
dim_pattern = (int(dim_max * print_['scale'] / 5), int(dim_max * print_['scale'] / 5))
|
||||
gap = print_dict.get('gap', [0, 0])[0]
|
||||
gap = print_dict.get('gap', [[0, 0]])[0]
|
||||
painting_dict['tile_print'] = tile_image(pattern=print_['image'],
|
||||
dim=dim_pattern,
|
||||
gap_x=gap[0],
|
||||
|
||||
Reference in New Issue
Block a user