Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > draw an image in Java

Reply
Thread Tools

draw an image in Java

 
 
Khoa Tran
Guest
Posts: n/a
 
      04-13-2004
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
 
Reply With Quote
 
 
 
 
Chris Smith
Guest
Posts: n/a
 
      04-13-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
draw an image in wx.BufferedDC onto the page created by AddPage of wx.Notebook zxo102 Python 1 08-10-2006 07:08 PM
End user draw an image and post back to webserver? M O J O ASP .Net 1 06-07-2005 09:05 AM
draw line on image =?Utf-8?B?QUNhdW50ZXI=?= ASP .Net 3 02-22-2005 09:37 PM
Cannot draw on mutable image Dirk Schumann Java 0 12-27-2004 03:21 AM
load and draw image GEBUH Java 1 12-16-2003 07:45 AM



Advertisments