Saving image ..??

Discussion in 'Java' started by rasha_cs_99@hotmail.com, Jun 14, 2005.

  1. Guest

    Hai all,

    I want to draw text and graphics and save all these in a jpg or bmp
    image?? Do you have any idea???
    I've read a tuotorial that uses the package javax.media... but it makes
    errors for me ( It doesnt find the package)....I've download the new
    version of java but this package and specifically the class
    javax.media.PlanarImage seems to be unavilable...Any help???


    Thanx alot,
    Alshayeb.Rasha
    , Jun 14, 2005
    #1
    1. Advertising

  2. wrote:

    > Hai all,
    >
    > I want to draw text and graphics and save all these in a jpg or bmp
    > image?? Do you have any idea???
    > I've read a tuotorial that uses the package javax.media... but it makes
    > errors for me ( It doesnt find the package)....I've download the new
    > version of java but this package and specifically the class
    > javax.media.PlanarImage seems to be unavilable...Any help???
    >
    >
    > Thanx alot,
    > Alshayeb.Rasha
    >


    Take a look at BufferedImage and ImageIO in the API docs. I don't know
    how you want to do your drawing, with code or a mouse or what. Once you
    have drawn on the BufferedImage you can save it with ImageIO.

    --

    Knute Johnson
    email s/nospam/knute/
    Knute Johnson, Jun 15, 2005
    #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. John Kandell
    Replies:
    4
    Views:
    4,140
    eeebop
    Dec 10, 2004
  2. Luis Esteban Valencia
    Replies:
    0
    Views:
    2,489
    Luis Esteban Valencia
    Jan 6, 2005
  3. Milsnips
    Replies:
    0
    Views:
    388
    Milsnips
    Nov 16, 2005
  4. Nathan Sokalski

    Saving an image to SQL Server's image datatype

    Nathan Sokalski, Jul 17, 2008, in forum: ASP .Net
    Replies:
    9
    Views:
    29,413
    steve
    Aug 3, 2008
  5. Lovely Angel For You

    Saving Images While Saving ASP Pages !

    Lovely Angel For You, Oct 2, 2003, in forum: ASP General
    Replies:
    1
    Views:
    193
    Curt_C [MVP]
    Oct 3, 2003
Loading...

Share This Page