Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send an ImageIcon object as the Image argument that drawImage() expects?

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can send an ImageIcon object as the Image argument that drawImage() expects. true/false
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is ImageIcon a direct or indirect sub class of Image? If not, is there a method to get an Image object out of the ImageIcon?
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Leonidas Savvides wrote:You can send an ImageIcon object as the Image argument that drawImage() expects. true/false

To know that, all you have to do is try it.
 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried but gives error... well is really FALSE...?
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you tried and you got an error, the answer seems to be false.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic