draw an image in Java

Discussion in 'Java' started by Khoa Tran, Apr 13, 2004.

  1. Khoa Tran

    Khoa Tran Guest

    I have a map and want to export it to a jpeg file. What's an elegant way
    in Java to write my map, which is a matrix of black, white and grey
    blocks, to an image file?

    Thank you very much
     
    Khoa Tran, Apr 13, 2004
    #1
    1. Advertising

  2. Khoa Tran

    Chris Smith Guest

    Khoa Tran wrote:
    > I have a map and want to export it to a jpeg file. What's an elegant way
    > in Java to write my map, which is a matrix of black, white and grey
    > blocks, to an image file?


    If you can draw it using Graphics to a BufferedImage object, it can then
    be easily written out using the javax.imageio.ImageIO class.

    --
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
     
    Chris Smith, Apr 13, 2004
    #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. =?Utf-8?B?QUNhdW50ZXI=?=

    draw line on image

    =?Utf-8?B?QUNhdW50ZXI=?=, Feb 22, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    476
    Peter Rilling
    Feb 22, 2005
  2. M O J O
    Replies:
    1
    Views:
    368
  3. GEBUH

    load and draw image

    GEBUH, Dec 16, 2003, in forum: Java
    Replies:
    1
    Views:
    478
  4. Dirk Schumann

    Cannot draw on mutable image

    Dirk Schumann, Dec 27, 2004, in forum: Java
    Replies:
    0
    Views:
    432
    Dirk Schumann
    Dec 27, 2004
  5. zxo102
    Replies:
    1
    Views:
    682
    Simon Forman
    Aug 10, 2006
Loading...

Share This Page