How to create a big image file from many tiles in java?

前端 未结 3 927
走了就别回头了
走了就别回头了 2020-12-19 06:24

My program produces 10 x 10 tiles images of 3000x3000 pixel, one by one (currently saved to 100 files named image_x_y.jpg)

I want to assemble these 100

3条回答
  •  借酒劲吻你
    2020-12-19 06:49

    If you have trouble using a resource from a public maven repository you might want to use Nexus, a maven proxy, and manually add the JAI jar there (and add that to your list of repositories).

    The advantage of chosing this solution is that you would have JAI, and would have a standard way to use non-maven resources (all the javax libraries) in a maven way.

    Don't fiddle with this around yourself, the imaging matter is complex due to all the compression involved and dealing with BMPs on disk is, given your image sizes (about 100 * 30MB = 3GB) probably not optimal nor fast.

提交回复
热议问题