最终图的效果是一行123456变为

123456
123456

1、对于只有一行像素的图

zoom_image_factor (Image, ImageZoomed, 1, 你想要的行数, 'constant')

2、对于只有一行的数组,思路是把数组弄到图上,对图采用上述方法。

gen_image_const (Image, 'byte', |你的数组|, 1)
tuple_gen_sequence (0, |你的数组|-1, 1, ColSequence)
tuple_gen_const (|你的数组|, 0, RowTuple)
set_grayval (Image, RowTuple, ColSequence, 你的数组)

zoom_image_factor (Image, ImageZoomed, 1, 你想要的行数, 'constant')

 

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2021-11-10
  • 2021-09-05
  • 2022-12-23
  • 2021-06-14
  • 2022-03-05
猜你喜欢
  • 2021-09-03
  • 2022-12-23
  • 2021-12-17
  • 2021-10-18
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案