Incompatible types when returning value

后端 未结 3 2003
野的像风
野的像风 2021-01-26 11:15

I want to display an image with drawn lines on a map, and separate images made for every single section in the image (several connected lines). I have written this code:

3条回答
  •  野性不改
    2021-01-26 12:03

    lineImage1 is defined as BufferedImage lineImage1[], which is an array of BufferedImages. The return value of the method is BufferedImage.

    You either want to change the return type to an array of BufferedImages, or only return a single BufferedImage.

提交回复
热议问题