This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 403
You can send an ImageIcon object as the Image argument that drawImage() expects. true/false
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

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: 4523
    
    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: 19649
    
  18

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