On Tue, 30 May 2000, Brevsville Administrator wrote:

> Hi
>
> I have an application whereby I have to load an image in my servlet and
> resize or measure it. I thought I could use .awt.image package but it
> seems that is designed for use with applets.
>
> Am I missing something here or going about things here the wrong way?

Hi Chris,

indeed the image processing APIs of Java are peculiar to say the least.
However, it is not true that the awt.image hierarchy is an applets-only
thing. All you have to do is create a NON visible image,

e.g. Image img = Toolkit.getDefaultToolkit().getImage(imagefile)

and proceed to treat it as you wish, with the awt methods.

Jason Hunter's book has some interesting examples in Chapter 6: Sending
Multimedia Content. If this won't satisfy you, mail me directly for more
specific tips.

Regards,
Kostas


> Thanx for any advice.
>
> Chris
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to