A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
creating BufferedImage object in a servlet
Joined: Apr 11, 2006
Sep 14, 2007 09:54:00
I'm attempting to create a
object inside my
I have no idea how to use
Could anybody post some code please in regards to this?
java.awt.Image pageImage = Toolkit.getDefaultToolkit().createImage(b); //ImageObserver observer = new ImageObserver(); /* BufferedImage bi = new BufferedImage( pageImage.getWidth(ImageObserver observer), pageImage.getHeight(ImageObserver observer), BufferedImage.TYPE_INT_RGB ); */ BufferedImage bi = new BufferedImage( 800,800, BufferedImage.TYPE_INT_RGB );
Joined: Mar 22, 2005
Sep 14, 2007 15:30:00
Where is the image coming from? A file? A byte array? A URL?
If you're creating it from scratch, then you may find
this blog entry
[ September 14, 2007: Message edited by: Ulf Dittmer ]
Ping & DNS
- updated with new look and Ping home screen widget
I agree. Here's the link:
subject: creating BufferedImage object in a servlet
adding images to JPanel ***************URGENT
saving an image
Trying to display java.awt.Image in a JSP page.
where does BufferedImage save files?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014