Results 1 to 3 of 3
  1. #1
    han003 is offline Member
    Join Date
    Mar 2011
    Posts
    6
    Rep Power
    0

    Default BufferedImage to ImageIcon

    Title says it all.

    I have a BufferedImage, I'd like to convert it to an ImageIcon ^^

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default

    Read the API, maybe?

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    Also note that you can't 'convert' a BufferedImage to an ImageIcon, any more than you can convert a passport photograph to a passport.

    You can, however, obtain a passport that uses the photograph, and likewise you can obtain an ImageIcon that uses the BufferedImage.

    db

Similar Threads

  1. Need help with ImageIcon and int
    By proceeded in forum New To Java
    Replies: 9
    Last Post: 01-23-2011, 11:10 PM
  2. ImageIcon HELP!
    By ben1989 in forum New To Java
    Replies: 1
    Last Post: 05-05-2010, 09:48 PM
  3. Converting BufferedImage Into ImageIcon
    By hitmen in forum AWT / Swing
    Replies: 9
    Last Post: 03-25-2009, 09:10 AM
  4. ImageIcon background
    By Yannick in forum New To Java
    Replies: 11
    Last Post: 02-12-2009, 05:13 PM
  5. send imageIcon over RMI
    By nadia in forum Advanced Java
    Replies: 4
    Last Post: 01-06-2009, 04:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •