File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Type mismatch: cannot convert from Image to Image[]

 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse 3.6.2 is complaining that it cannot convert an Image to an Image[], and, I need to read an Image, rather than an Image[]




Further information at Java Tutorial (Oracle) - Arrays.

 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CardIcons[i] is an Image[] and you're trying to assign an Image to it. By the way: variable name should start with an lowercase letter.
 
fred rosenberger
lowercase baba
Bartender
Pie
Posts: 12022
25
Chrome Java Linux
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you have an egg, can you make it an egg carton?

No.

it's the same thing here. You can't just cast an Image to an Image[] as they are not the same thing.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic