aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 402
You can send an ImageIcon object as the Image argument that drawImage() expects. true/false
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

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: 4522
    
    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: 402
I tried but gives error... well is really FALSE...?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

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?
 
Similar Threads
JOptionPane question
ImageObserver interface
ImageIcon problem
Servlet request object input stream time out
Graphics problem , how to approach ?