Images

Discussion in 'Java' started by Francois Lionet, May 2, 2007.

  1. Hello all,

    I hope I am not asking a stupid question, but I can't find how to to it. I
    have Graphics2D, and I would like to create a BufferedImage from a rectangle
    in the Graphics2D. I could not find any method that creates an image or a
    buffered image in both graphics and graphics2d methods. Or have I missed
    something obvious? If yes, sorry to bother you. But can you tell it to me
    anyway :cool:?

    Francois
     
    Francois Lionet, May 2, 2007
    #1
    1. Advertising

  2. Francois Lionet wrote:

    >...I could not find any method that creates an image


    See..
    <http://java.sun.com/javase/6/docs/api/java/awt/Toolkit.html#getImage(java.net.URL
    )>
    ..and its lesser reliable String overloaded variant.

    Also all the methods based on..
    java.awt.Toolkit.createImage()

    >...or a
    >buffered image


    <http://java.sun.com/javase/6/docs/api/java/awt/image/BufferedImage.html#constructor_summary
    >


    HTH

    --
    Andrew Thompson
    http://www.athompson.info/andrew/

    Message posted via JavaKB.com
    http://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1
     
    Andrew Thompson, May 2, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest
    Replies:
    4
    Views:
    921
    Eliyahu Goldin
    Jan 4, 2005
  2. Luis Esteban Valencia Muñoz
    Replies:
    0
    Views:
    794
    Luis Esteban Valencia Muñoz
    Jun 3, 2005
  3. wardemon

    Cache Images vs Static Images

    wardemon, Jun 14, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    676
    bruce barker
    Jun 14, 2007
  4. Keith Hughitt
    Replies:
    6
    Views:
    1,091
  5. Adrienne Boswell
    Replies:
    1
    Views:
    520
    dorayme
    Aug 4, 2009
Loading...

Share This Page