Solved

Saving processed Image

Posted on 1997-11-17
5
167 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
Comment Utility
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
Comment Utility

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
Comment Utility
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
Comment Utility

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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now