How to store Images(gif/jpeg) created in the java program?
0 posts in topic
Flat View  Flat View

Posted By:   Shridhar_N
Posted On:   Tuesday, September 11, 2001 11:56 PM



I have a image and on that image i will write a text and now i want to store the new image file . How to do this.?
I am using the following code for that,

Canvas c=new Canvas();
Toolkit toolkit = Toolkit.getDefaultToolkit();
java.awt.Image image = toolkit.getImage("hi.gif");
g.drawImage(image, 0, 0,this);
g.drawString("Hello !!", 60, 20);

Till this it will draw the image and write a text on that image ,,Now i want to store this new image file .. How to do this? If you have the sample code for that please do send me that..

Thanks for your time..


About | Sitemap | Contact