Solved

Saving processed Image

Posted on 1997-11-17
5
188 Views
Last Modified: 2011-09-20
I would like to know whether I can save a image (which is
processed by using a original image) in gif or jpg format


shriya@hotmail.com
0
Comment
Question by:shriya
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:jpk041897
ID: 1230812
Is this for an applet or a stand alone application.

In an applets case you can only save on the server from which you loaded the applet.

Regarding the rest of your question, you are going to need to use an image factory to produce a filter that can save to a gif or jpg format.

If you only want to save in the format that was originaly loaded, the answer is pretty straight forward, if you want the ability to save to other formats, the solution can quickly grow in complexity.

Could yo be more specific on your requirenments?
0
 
LVL 4

Accepted Solution

by:
rembo earned 20 total points
ID: 1230813

You can find a class that will do a GIF encode of your
image so you can save it to a file at:

http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html

-Tony

0
 
LVL 1

Author Comment

by:shriya
ID: 1230814
to jpk: It is application i am talking.
      i wanted to know whether java has inbuilt class
methods for saving in gif and jpg format.
         like it has inbuilt class loaders for jpg and gif
format.

I am sorry to rembo that i was not clear in specifying
my requirements.

0
 
LVL 4

Expert Comment

by:rembo
ID: 1230815

There is not a built-in method for doing this.  However,
the class I referred you to is freeware, and it does
exactly that.

-Tony

0
 
LVL 1

Author Comment

by:shriya
ID: 1230816
Thanks Mr Rembo It has solved my requirements.
If u r aware of good java sites with source code
pl send it to me

shriya@hotmail.com
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question