Hi,
I'm a veteran Java servlet programmer but a complete novice when
it comes to graphics manipulation of any sort. At some point, when
I have more time, I'd love to be able to start at the beginning and
actually learn this stuff, but for now I'm hoping that someone can
simply provide me with a complete solution to the following.
Given an image File (jpeg, gif, or animated gif), and two scaling
factors
(percentages of width and height), I need to produce a new image File
in the same format which is appropriately scaled.
Are there any quick and easy methods for doing this? Something along
the lines of:
FileOutputStream o = (new GifImage(new FileInputStream(File
f))).scale(x,y).getGifOutputStream();
(and similarly for jpegs).
I can see that such methods and objects do not exist, but hopefully the
basic idea of
converting a File to an Image, scaling, and then converting back to a
File is clear.
I did see how to do part of this (e.g. converting a File to an Image)
but only for jpegs,
and even then, I'm not sure about the process of scaling and converting
back to a File.
Any help would be greatly appreciated.
John
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".