Piece together several images into one big image

前端 未结 6 799
抹茶落季
抹茶落季 2021-01-18 09:34

I\'m trying to put several images together into one big image, and am looking for an algorithm which determines the placing most optimally. The images can\'t be rotated or r

6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-18 09:58

    Appearantly it's called a 'packing problem', which is something frequently used in game programming. For those interested, here are some suggested implementations:

    Packing Lightmaps, Rectangle packing and Rectangle Placement

提交回复
热议问题