The Artima Developer Community
Sponsored Link

Java Answers Forum
JPG

1 reply on 1 page. Most recent reply: Nov 28, 2005 4:31 AM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
steve chu

Posts: 14
Nickname: chuchutrai
Registered: Nov, 2005

JPG Posted: Nov 28, 2005 3:53 AM
Reply to this message Reply
Advertisement
how do I create and write an image and text to a .jpg file?


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: JPG Posted: Nov 28, 2005 4:31 AM
Reply to this message Reply
javax.imageio.ImageIO.write(someBufferedImage, "jpg", someFile);
//  Where someBufferedImage is an Image of type java.awt.image.BufferedImage,
//  and someFile is a Jpeg file such as new File("my_picture.jpg");

Flat View: This topic has 1 reply on 1 page
Topic: GeneratingClasses and mappingFiles from database schema/ sql with ant/maven Previous Topic   Next Topic Topic: Socket Programming

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use