wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes send an ImageIcon object as the Image argument that drawImage() expects? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "send an ImageIcon object as the Image argument that drawImage() expects?" Watch "send an ImageIcon object as the Image argument that drawImage() expects?" New topic
Author

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

Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
You can send an ImageIcon object as the Image argument that drawImage() expects. true/false
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19680
    
  19

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?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

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.


luck, db
There are no new questions, but there may be new answers.
Leonidas Savvides
Ranch Hand

Joined: Jan 31, 2010
Posts: 403
I tried but gives error... well is really FALSE...?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19680
    
  19

If you tried and you got an error, the answer seems to be false.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: send an ImageIcon object as the Image argument that drawImage() expects?